Android build fails for libs with minSdkVersion 17 with react-native 0.64
See original GitHub issueEnvironment
- react-native-pager-view: 5.1.2
- React Native: 0.64.0
- Node: v14.8.0
Description
The following command fails after upgrading to RN 0.64
./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug
With the following message:
> Task :react-native-pager-view:processDebugAndroidTestManifest FAILED
[androidx.vectordrawable:vectordrawable-animated:1.0.0] /.gradle/caches/transforms-2/files-2.1/3050775700026023c1db3db79ab19a97/vectordrawable-animated-1.0.0/AndroidManifest.xml Warning:
Package name 'androidx.vectordrawable' used in: androidx.vectordrawable:vectordrawable-animated:1.0.0, androidx.vectordrawable:vectordrawable:1.0.1.
/node_modules/react-native-pager-view/android/build/intermediates/tmp/manifest/androidTest/debug/manifestMerger2807704319365703146.xml:5:5-74 Error:
uses-sdk:minSdkVersion 17 cannot be smaller than version 21 declared in library [com.facebook.react:react-native:0.64.0] /.gradle/caches/transforms-2/files-2.1/4e32a44ca1590525038237dd6b47cd32/jetified-react-native-0.64.0/AndroidManifest.xml as the library might be using APIs not available in 17
Suggestion: use a compatible library with a minSdk of at most 17,
or increase this project's minSdk version to at least 21,
or use tools:overrideLibrary="com.facebook.react" to force usage (may lead to runtime failures)
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
Reproducible Demo
Run ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Android build fails for libs with minSdkVersion 17 with react ...
Describe the bug The following command fails after upgrading to RN 0.64 ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug ...
Read more >Struggling to get Android build working due to minSdkVersion
The issue is that RN 0.64 increased its minSdkVersion from 16 to 21. ... This seems to be a quite common error in...
Read more >Android App build error - I have no idea what to do
Hi, unfortunately, I now always get an error when I try to build an Android app (both with runtime version 4.5.12 and version...
Read more >what went wrong: a problem occurred configuring project ':app ...
I'm trying to build a react native package to integrate with an andriod app, I'm using a template android app to test if...
Read more >React Native Upgrade Helper
Release 0.64. React Native 0.64 includes Hermes opt-in on iOS and React 17. ... Release 0.62. React Native 0.62 includes built-in integration with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This fix has been released here: https://github.com/callstack/react-native-pager-view/releases/tag/v5.1.3
Would it be possible to release this change @troZee as it’s currently causing a problem for us trying to build against react native 0.64?