Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build for Android with compileSdkVersion 30 #218

Open
mmkhmk opened this issue Aug 3, 2022 · 2 comments
Open

Failed to build for Android with compileSdkVersion 30 #218

mmkhmk opened this issue Aug 3, 2022 · 2 comments

Comments

@mmkhmk
Copy link

mmkhmk commented Aug 3, 2022

I got the following error in Android build.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDevDebugAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
   > The minCompileSdk (31) specified in a
     dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
     is greater than this module's compileSdkVersion (android-30).
     Dependency: androidx.biometric:biometric:1.2.0-alpha04.
     AAR metadata file: /Users/erika.tayama/.gradle/caches/transforms-3/f404b9545f67b9de464f9067c770604c/transformed/biometric-1.2.0-alpha04/META-INF/com/android/build/gradle/aar-metadata.properties.

compileSdkVersion is 30 in our app and we can't update it because of dependencies for now.
Is there any ways to use this library with compileSdkVersion 30?

@mikehardy
Copy link
Collaborator

I don't see how androidx.biometric dependency came in at 1.2.0-alpha04.
It should be at 1.1.0.

implementation "androidx.biometric:biometric:1.1.0"

Then it most likely would only need compileSdkVersion 30. Bumping to JDK11 + compileSdkVersion 31 should be a very high priority for you, everything is moving to that as a baseline at the moment so you'll lose access to current versions of many modules I know about at least, if you can't access it

@BraveEvidence
Copy link

Check my video https://www.youtube.com/watch?v=DAZJ2JhDkNU. It will help you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants