Description
Describe the bug
The latest version of the library (0.2.4) appears to break the build process for RN Android projects due to requiring a higher minCompileSdk
than is specified in standard React Native projects.
To Reproduce
Steps to reproduce the behavior:
- Create a new React Native project via
npx react-native init
- Install the library via
yarn add @stripe/stripe-react-native
- Run the android build via
yarn run android
- See error
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: /Users/tom/.gradle/caches/transforms-3/6105d9693b6d1b89f331872365193f55/transformed/jetified-activity-compose-1.4.0/META-INF/com/android/build/gradle/aar-metadata.properties.
Expected behavior
The app builds successfully when using the library with fresh RN projects.
Screenshots
N/A
Desktop (please complete the following information):
- macOS Monterey 12.1
Smartphone (please complete the following information):
- Android Emulator, any
Additional context
N/A