lufinkey/react-native-spotify

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

AlexLaRochelle opened this issue · 1 comments

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?

same issue :/
did you solved it @AlexLaRochelle ?