Skip to content

[android] Version 0.2.4 requires targetSdkVersion = 31 #812

Closed
@tomparkp

Description

@tomparkp

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:

  1. Create a new React Native project via npx react-native init
  2. Install the library via yarn add @stripe/stripe-react-native
  3. Run the android build via yarn run android
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions