sentry-demos / sentry_react_native

Error Monitoring, Performance Monitoring, Release Health
3 stars 11 forks source link

fix(android): Build with stable `androidx.core` #70

Closed krystofwoldrich closed 5 months ago

krystofwoldrich commented 5 months ago

This PR fixes the following build error.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
   > An issue was found when checking AAR metadata:
       1.  Dependency 'androidx.core:core:1.15.0-alpha01' requires libraries and applications that
           depend on it to compile against version 35 or later of the
           Android APIs.
           :app is currently compiled against android-34.
           Also, the maximum recommended compile SDK version for Android Gradle
           plugin 8.2.1 is 34.
           Recommended action: Update this project's version of the Android Gradle
           plugin to one that supports 35, then update this project to use
           compileSdk of at least 35.
           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).
* 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.