Skip to content

[Question]: How to set 'compileSdkVersion' to 31 or higher. #2722

Closed

Description

@T-Dynamos

Checklist

  • the issue is indeed a bug and not a support request
  • issue doesn't already exist: https://github.com/kivy/python-for-android/issues
  • I have a short, runnable example that reproduces the issue
  • I reproduced the problem with the latest development version (p4a.branch = develop)
  • I used the grave accent (aka backticks) to format code or logs when appropriated

Versions

  • Python:3.10.9
  • OS:Arch Linux
  • Kivy:2.1.0
  • Cython:
  • OpenJDK:

Description

I am trying to build apk with android.gradle_dependencies = "com.google.firebase:firebase-ads:21.4.0" but it does not work and gave error

Logs

> Task :checkDebugAarMetadata FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':checkDebugAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> One or more issues found when checking AAR metadata values:

Dependency 'androidx.browser:browser:1.4.0' requires 'compileSdkVersion' to be set to 31 or higher.
Compilation target for module ':' is 'android-30'

Dependency 'androidx.work:work-runtime:2.7.0' requires 'compileSdkVersion' to be set to 31 or higher.
Compilation target for module ':' is 'android-30'

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 4s
5 actionable tasks: 5 executed

Also I have set android.api = 33

Activity

  1. T-Dynamos commented on Dec 27, 2022

    @T-Dynamos
    MemberAuthor

    I successfully built apk by manually doing it.

  2. github-actions commented on Dec 28, 2022

    @github-actions

    👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.

    If you're having trouble installing or using python-for-android, maybe you could be interested in our quickstart guide.

    Let us know if this comment was made in error, and we'll be happy to reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions