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

Test build fails on react-native@0.74 due to minSdkVersion 21 #802

Open
lluiscab opened this issue May 9, 2024 · 5 comments
Open

Test build fails on react-native@0.74 due to minSdkVersion 21 #802

lluiscab opened this issue May 9, 2024 · 5 comments

Comments

@lluiscab
Copy link
Contributor

lluiscab commented May 9, 2024

react-native@0.74 bumped the minSdkVersion to 23 (see release notes)

This library is still using minSdkVersion 21 as seen in:

Menu_minSdkVersion=21
and
minSdkVersion 21
which is causing build issues on my project when building the app for testing.

Build error:

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-menu_menu:processDebugAndroidTestManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library [com.facebook.react:react-android:0.74.1] /<redacted>/.gradle/caches/transforms-4/e5b57f16c7e0461b8ffc655e3c736199/transformed/jetified-react-android-0.74.1-debug/AndroidManifest.xml as the library might be using APIs not available in 21
  	Suggestion: use a compatible library with a minSdk of at most 21,
  		or increase this project's minSdk version to at least 23,
  		or use tools:overrideLibrary="com.facebook.react" to force usage (may lead to runtime failures)
@lluiscab lluiscab changed the title Test build fails on react-native@0.74 Test build fails on react-native@0.74 due to minSdkVersion 21 May 9, 2024
@zxcodes
Copy link

zxcodes commented May 11, 2024

Same here. The build fails after upgrading to Expo SDK 51. I have the exact same error.

@lluiscab
Copy link
Contributor Author

lluiscab commented May 22, 2024

Any progress on this issue? I seems like it's the only thing left blocking our update to react-native@0.74.
If the only required changes are updating the minSdkVersion in build.gradle and gradle.properties, then I might have time to open a PR myself, but I'm not sure if those are the only required changes

@zxcodes
Copy link

zxcodes commented May 23, 2024

Any progress on this issue? I seems like it's the only thing left blocking our update to react-native@0.74. If the only required changes are updating the minSdkVersion in build.gradle and gradle.properties, then I might have time to open a PR myself, but I'm not sure if those are the only required changes

IMO, those are the only changes that you need to make. I'm currently using a fork of this library with those changes. I'm not sure if a PR for that would be considered since it might be a breaking change for the apps that target a lower SDK version.

@lluiscab
Copy link
Contributor Author

I'm not sure if a PR for that would be considered since it might be a breaking change for the apps that target a lower SDK version.

Given that react-native@0.74 already bumps minSdkVersion to 23, I'd say that it's not that much of a problem, in any case he change could be published as a major release.

@zxcodes
Copy link

zxcodes commented May 23, 2024

I'm not sure if a PR for that would be considered since it might be a breaking change for the apps that target a lower SDK version.

Given that react-native@0.74 already bumps minSdkVersion to 23, I'd say that it's not that much of a problem, in any case he change could be published as a major release.

Cool. A PR should do the job then.

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

No branches or pull requests

2 participants