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

ERROR: Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 16 declared #161

Open
AlexLaRochelle opened this issue Feb 8, 2020 · 1 comment

Comments

@AlexLaRochelle
Copy link

Here is the full error im getting when trying to "Sync project with Gradle files" in Android studio:

ERROR: Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 16 declared in library [com.facebook.react:react-native:0.61.5] /Users/alex/.gradle/caches/transforms-2/files-2.1/610debb16ba12092a07183089130e2e1/jetified-react-native-0.61.5/AndroidManifest.xml as the library might be using APIs not available in 1
Suggestion: use a compatible library with a minSdk of at most 1,
or increase this project's minSdk version to at least 16,
or use tools:overrideLibrary="com.facebook.react" to force usage (may lead to runtime failures)

I'm using React-Native version 0.61.5 and the latest version of this library.

My app builds and runs fine, but I want to generate an apk in android studio, which leads me to this error when syncing with Gradle files.

I tried simply adding a "minSdkVersion 16" in the library's build.gradle, but it didn't seem to change anything. Here's a screenshot of where the error happens in the syncing:

image

Any idea how we could fix this?

@ManAnRuck
Copy link

same issue :/
did you solved it @AlexLaRochelle ?

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