dpa99c / react-native-launch-navigator

A React Native module for launching today's most popular navigation/ride apps to navigate to a destination.
143 stars 34 forks source link

uses-sdk:minSdkVersion 4 cannot be smaller than version 16 declared in library #17

Closed bencergazda closed 5 years ago

bencergazda commented 5 years ago

I'm submitting a ... (check one with "x"):

Bug report

Current behavior:

Expected behavior:

Syncing RN 0.59.9 project with react-native-launch-navigator installed should be finished without errors in Android Studio.

Steps to reproduce:

$ react-native init RNLaunchNavigatorTest --version react-native@0.59.9 $ yarn add react-native-launch-navigator $ react-native link react-native-launch-navigator

Start Android Studio, syncing project will fail with

ERROR: Manifest merger failed : uses-sdk:minSdkVersion 4 cannot be smaller than version 16 declared in library [com.facebook.react:react-native:0.59.9] /Users/[username]/.gradle/caches/transforms-2/files-2.1/f7c6d642ca74fe7147a17e4bf4e07c33/AndroidManifest.xml as the library might be using APIs not available in 4
    Suggestion: use a compatible library with a minSdk of at most 4,
        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)

Environment information

Android build issue:

Other information:

dpa99c commented 5 years ago

Fixed by #18