uses-sdk:minSdkVersion XY cannot be smaller than version YZ declared in library #4685
Closed
Description
What happened?
I add Detox to my project, and last step failed.
https://wix.github.io/Detox/docs/introduction/project-setup#step-5-build-the-app
Command:
detox build --configuration android.emu.debug
Failed in:
Task :react-native-voice_voice:processDebugAndroidTestManifest FAILED
../node_modules/@react-native-voice/voice/android/build/intermediates/tmp/manifest/androidTest/debug/tempFile1ProcessTestManifest8090628721719432910.xml:5:5-74 Error:
uses-sdk:minSdkVersion 15 cannot be smaller than version 21 declared in library [com.facebook.fresco:fresco:3.1.3] /.gradle/caches/transforms-4/c28af871582614d5b1452d382cfa2db0/transformed/jetified-fresco-3.1.3/AndroidManifest.xml as the library might be using APIs not available in 15
Suggestion: use a compatible library with a minSdk of at most 15,
or increase this project's minSdk version to at least 21,
or use tools:overrideLibrary="com.facebook.drawee.backends.pipeline" to force usage (may lead to runtime failures)
- I use the latest react-native-voice_voice 3.2.4
- My project has minSdk version 27
- tools:overrideLibrary="com.facebook.drawee.backends.pipeline" do not remove this failed
- <uses-sdk android:minSdkVersion="27" /> do not remove this failed
Was it tested on latest Detox?
- I have tested this issue on the latest Detox release and it still reproduces.
OS: MacOS 14.7
Detox: 20.32.0
Node: 20.17.0
ReacNative: 0.74.2 (old architecture)