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 getExtOrIntegerDefault for minSDKVersion in build.gradle #145

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DanaNussair
Copy link

Uses getExtOrIntegerDefault function to use sdk versions from the root project

If the root project uses a minSdkVersion which is higher than 16, building the root project fails.

The error message:

Task :react-native-receive-sharing-intent:processDebugAndroidTestManifest FAILED
[androidx.vectordrawable:vectordrawable-animated:1.0.0] /home/dananussair/.gradle/caches/transforms-3/b73c4195544405c972c9d42c9310038f/transformed/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.
/home/dananussair/Development/kontist-app/node_modules/react-native-receive-sharing-intent/android/build/intermediates/tmp/manifest/androidTest/debug/manifestMerger1586576448122975393.xml:5:5-74 Error:
        uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library [com.facebook.react:react-native:0.66.4] /home/dananussair/.gradle/caches/transforms-3/048d4de02ff09af1f27b43c86e129215/transformed/jetified-react-native-0.66.4/AndroidManifest.xml as the library might be using APIs not available in 16
        Suggestion: use a compatible library with a minSdk of at most 16,
                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)

@DanaNussair DanaNussair changed the title Users getExtOrIntegerDefault for minSDKVersion in build.gradle Uses getExtOrIntegerDefault for minSDKVersion in build.gradle Jun 14, 2022
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

Successfully merging this pull request may close these issues.

1 participant