Describe the bug
When assembling an Android test build using React Native 0.75.5, I ran into the following error:
/node_modules/@datadog/mobile-react-native/android/build/intermediates/tmp/manifest/androidTest/debug/xxx.xml:5:5-74 Error:
uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library [com.facebook.react:react-android:0.75.5] .gradle/caches/8.8/transforms/xxx/transformed/react-android-0.75.5-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)
Reproduce command:
./gradlew assembleDebug assembleAndroidTest
Bumping the minSdkVersion to 23, in line with the React Native version, solved the issue for me.
I made a commit for the Datadog packages to use the same minSdkVersion as the root project. This solved the issue locally for me. Alternatively I can add some additional validation to make sure we still enforce a minimum of SDK 21. This should allow the Datadog team to enforce a minimum version, even when the root project doesn't suffice. Happy to make a Pull Request if that works.
nbennink@d4021d6
Reproduction steps
- Added Detox to my React Native 0.75.5 application and followed the setup guide.
- Created an Android build with test instruments using:
./gradlew assembleDebug assembleAndroidTest
- Observe error
assembleDebug (without test tools) still seem to build correctly as before.
SDK logs
No response
Expected behavior
No response
Affected SDK versions
2.7.0
Latest working SDK version
N/A
Did you confirm if the latest SDK version fixes the bug?
Yes
Integration Methods
Yarn
React Native Version
0.75.5
Package.json Contents
No response
iOS Setup
No response
Android Setup
No response
Device Information
No response
Other relevant information
No response
Describe the bug
When assembling an Android test build using React Native 0.75.5, I ran into the following error:
Reproduce command:
./gradlew assembleDebug assembleAndroidTestBumping the minSdkVersion to 23, in line with the React Native version, solved the issue for me.
I made a commit for the Datadog packages to use the same minSdkVersion as the root project. This solved the issue locally for me. Alternatively I can add some additional validation to make sure we still enforce a minimum of SDK 21. This should allow the Datadog team to enforce a minimum version, even when the root project doesn't suffice. Happy to make a Pull Request if that works.
nbennink@d4021d6
Reproduction steps
./gradlew assembleDebug assembleAndroidTestassembleDebug (without test tools) still seem to build correctly as before.
SDK logs
No response
Expected behavior
No response
Affected SDK versions
2.7.0
Latest working SDK version
N/A
Did you confirm if the latest SDK version fixes the bug?
Yes
Integration Methods
Yarn
React Native Version
0.75.5
Package.json Contents
No response
iOS Setup
No response
Android Setup
No response
Device Information
No response
Other relevant information
No response