Skip to content

Upgrade Android compileSDK #20

@luis901101

Description

@luis901101

Currently I'm upgrading Gradle and AGP in my Android project to recent versions and I have found issues when compiling due to old compileSDK version

These are the version I'm using:
health: ^13.1.4
GRADLE: distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
AGP: id "com.android.application" version "8.13.0" apply false
targetSdkVersion and compileSdkVersion 36

And I get several error logs related to old Android dependencies like:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':gallery_saver_plus:checkReleaseAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
   > 19 issues were found when checking AAR metadata:

       1.  Dependency 'androidx.fragment:fragment:1.7.1' requires libraries and applications that
           depend on it to compile against version 34 or later of the
           Android APIs.

           :gallery_saver_plus is currently compiled against android-31.

           Recommended action: Update this project to use a newer compileSdk
           of at least 34, for example 36.

           Note that updating a library or application's compileSdk (which
           allows newer APIs to be used) can be done separately from updating
           targetSdk (which opts the app in to new runtime behavior) and
           minSdk (which determines which devices the app can be installed
           on).

       2.  Dependency 'androidx.window:window:1.2.0' requires libraries and applications that
           depend on it to compile against version 34 or later of the
           Android APIs.

           :gallery_saver_plus is currently compiled against android-31.

           Recommended action: Update this project to use a newer compileSdk
           of at least 34, for example 36.

           Note that updating a library or application's compileSdk (which
           allows newer APIs to be used) can be done separately from updating
           targetSdk (which opts the app in to new runtime behavior) and
           minSdk (which determines which devices the app can be installed
           on).
.....
.....
.....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions