Skip to content
New issue

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

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

Already on GitHub? # to your account

Build error after upgrading to 0.3.0 #822

Closed
BogdanVV opened this issue Feb 21, 2022 · 1 comment
Closed

Build error after upgrading to 0.3.0 #822

BogdanVV opened this issue Feb 21, 2022 · 1 comment

Comments

@BogdanVV
Copy link

Description of the bug:
After upgrading to 0.3.0 getting the following error on executing "react-native run-android":

Execution failed for task ':app:checkDebugAarMetadata'.

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.activity:activity-compose:1.4.0.
AAR metadata file: C:\Users*****.gradle\caches\transforms-3\6105d9693b6d1b89f331872365193f55\transformed\jetified-activity-compose-1.4.0\META-INF\com\android\build\gradle
aar-metadata.properties.

To Reproduce:
Steps to reproduce the behavior:

  1. run: Yarn add '@stripe/stripe-react-native'
  2. run: react-native run-android

Expected behavior:
I expected the app to build successfully as before the upgrading stripe-react-native to 0.3.0.

Desktop (please complete the following information):

  • OS: Windows 10

Smartphone:

  • Device: Pixel 4 emulated with Android Studio
  • Emulator API: 30
  • Android version: 11.0 x86

P.S. I can not set compileSdkVersion and targetSdkVersion to 31 because of incompatibility of some app's libs with this version. Still described issue must not appear after stripe-react-native's upgrade to newest version.

@charliecruzan-stripe
Copy link
Collaborator

duplicate of #812

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

No branches or pull requests

2 participants