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

Incompatible with Android SDK Version 30 #578

Open
ShepSims opened this issue Nov 15, 2022 · 1 comment
Open

Incompatible with Android SDK Version 30 #578

ShepSims opened this issue Nov 15, 2022 · 1 comment

Comments

@ShepSims
Copy link

ShepSims commented Nov 15, 2022

Following the Nov 5, 2022 RN update 0.71.0-rc.0 it appears that the following Build Failure is caused from react-native-keychain requiring Android SDK 31+

For people that must stay on V30 from other dependences this is a huge issue (especially as this is how we let our users log in...)

Note that when running the server locally it runs fine, but when building apk it causes crash.

Task :app:checkDevReleaseAarMetadata FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDevReleaseAarMetadata'.
> 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.appcompat:appcompat:1.4.2.
     AAR metadata file: /Users/shsims/.gradle/caches/transforms-3/10321df045a947658cd4cbc7702ffc98/transformed/appcompat-1.4.2/META-INF/com/android/build/gradle/aar-metadata.properties.
@ShepSims ShepSims changed the title Incompatible with SDK Version 30 Incompatible with Android SDK Version 30 Nov 15, 2022
@BraveEvidence
Copy link

@borgespro
Copy link

The same problem here: #553.

You can try add:

dependencies {
    ...
    implementation ("androidx.appcompat:appcompat:1.3.1") {
        version {
            strictly '1.3.1'
        }
    }
    ...
}

That solution worked for me.

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