Skip to content

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

@AlexLaRochelle

Description

@AlexLaRochelle

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions