Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library [com.facebook.react:react-android:0.75.1] #2645

Open
maaliHasan opened this issue Nov 10, 2024 · 1 comment
Labels
feature request New feature request sdk

Comments

@maaliHasan
Copy link

Description

We are experiencing compatibility issues when integrating appcenter-crashes with a recent version of React Native (0.75.1). Specifically, the library is enforcing an older minSdkVersion that conflicts with React Native’s requirements and other library dependencies, such as react-android.

Reproduction Steps

  1. Install the latest appcenter and appcenter-crashes versions in a React Native 0.75.1 project.
  2. Set the project's minSdkVersion to 21.
  3. Attempt to build the project, resulting in the following error:

Expected Behavior

Expect appcenter-crashes, appcenter-analytics and appcenter to be compatible with minSdkVersion 21 or otherwise clearly document the compatibility requirements.

Current Behavior

The project fails to build due to the minSdkVersion conflict, even after setting the AppCenter libraries to the latest available versions.

Workaround Attempts

  • We tried setting the minSdkVersion to 23, which solves the error but isn’t ideal for our project requirements.
  • We verified that the error persists after cleaning caches and reinstalling dependencies.

Environment

  • React Native: 0.75.1
  • AppCenter: [latest version used 5.0.2]
  • Android minSdkVersion: 21

Additional Context

Updating the minSdkVersion in the appcenter dependencies would improve compatibility with projects using newer React Native versions.

Please advise on potential workarounds or updates. Thank you!

@maaliHasan maaliHasan added the feature request New feature request label Nov 10, 2024
@MikhailSuendukov
Copy link

Hello, and thank you for reaching out to us! Starting with React Native 0.75.0, a new minimum Android SDK version of 23 was introduced (refer to the official blog post: React Native 0.75 Release Notes).
I tested this by creating a new React Native application using version 0.75.1 and setting the minimum SDK to 21. The same error occurred. However, when I added AppCenter packages to the dependencies and set the minimum SDK to 23, there were no compatibility issues.
Based on these findings, I believe the issue is not related to AppCenter but rather to the new React Native requirements. After version 0.75.0, it is no longer possible to use a minSdkVersion below 23 in your applications.
Let us know if you have any further questions or concerns!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request sdk
Projects
None yet
Development

No branches or pull requests

3 participants