Skip to content

9.7.1 Android build fails with Expo SDK 53 #406

@JakeYallop

Description

@JakeYallop

9.6.2 works fine.

I have the same issue (exact same error messages) with the new runtime (@rive-app/react-native) as well.

Removing Rive and then running expo run:android works. Also, downgrading the package to 9.6.2 and then building also works.

The log is below, but please let me know if there is any additional detail I can help to gather.

> Configure project :rive-react-native
rive-react-native: Using Rive Android SDK 10.5.3

> Task :app:checkDebugAarMetadata FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
   > 4 issues were found when checking AAR metadata:
     
       1.  Dependency 'androidx.core:core-ktx:1.17.0' requires libraries and applications that
           depend on it to compile against version 36 or later of the
           Android APIs.
     
           :app is currently compiled against android-35.
     
           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 8.8.2 is 35.
     
           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 36, then update this project to use
           compileSdk of at least 36.
     
           Note that updating a library or application's compileSdk (which
           allows newer APIs to be used) can be done separately from updating
           targetSdk (which opts the app in to new runtime behavior) and
           minSdk (which determines which devices the app can be installed
           on).
     
       2.  Dependency 'androidx.core:core-ktx:1.17.0' requires Android Gradle plugin 8.9.1 or higher.
     
           This build currently uses Android Gradle plugin 8.8.2.
     
       3.  Dependency 'androidx.core:core:1.17.0' requires libraries and applications that
           depend on it to compile against version 36 or later of the
           Android APIs.
     
           :app is currently compiled against android-35.
     
           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 8.8.2 is 35.
     
           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 36, then update this project to use
           compileSdk of at least 36.
     
           Note that updating a library or application's compileSdk (which
           allows newer APIs to be used) can be done separately from updating
           targetSdk (which opts the app in to new runtime behavior) and
           minSdk (which determines which devices the app can be installed
           on).
     
       4.  Dependency 'androidx.core:core:1.17.0' requires Android Gradle plugin 8.9.1 or higher.
     
           This build currently uses Android Gradle plugin 8.8.2.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions