Skip to content

Support: Build failed with an exception #41

@avinashk369

Description

@avinashk369

Describe the bug
Build failed with

  • minSdk - 24
  • compileSdk - 35
  • gradle-8.8-all.zip
  • kotlin version - 2.1.0

To Reproduce

  1. change compileSdk to 35
  2. build flutter application
  3. See error
FAILURE: Build failed with an exception.

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

       1.  Dependency 'androidx.credentials:credentials-play-services-auth:1.5.0-beta01' requires libraries and applications that
           depend on it to compile against version 35 or later of the
           Android APIs.

           :app is currently compiled against android-34.

           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 8.4.0 is 34.

           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 35, then update this project to use
           compileSdk of at least 35.

           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.credentials:credentials:1.5.0-beta01' requires libraries and applications that
           depend on it to compile against version 35 or later of the
           Android APIs.

           :app is currently compiled against android-34.

           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 8.4.0 is 34.

           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 35, then update this project to use
           compileSdk of at least 35.

           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).

       3.  Dependency 'androidx.core:core-ktx:1.15.0' requires libraries and applications that
           depend on it to compile against version 35 or later of the
           Android APIs.

           :app is currently compiled against android-34.

           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 8.4.0 is 34.

           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 35, then update this project to use
           compileSdk of at least 35.

           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).

       4.  Dependency 'androidx.core:core:1.15.0' requires libraries and applications that
           depend on it to compile against version 35 or later of the
           Android APIs.

           :app is currently compiled against android-34.

           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 8.4.0 is 34.

           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 35, then update this project to use
           compileSdk of at least 35.

           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).

* 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.

BUILD FAILED in 22s
Error: Gradle task assembleDebug failed with exit code 1

Exited (1).

SmartAuth version: [3.2.0]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions