I tried to run my Unscrambler application, but received an error about the MinSDK not being high enough for the project. This is the error that I received:
Manifest merger failed : uses-sdk:minSdkVersion 19 cannot be smaller than version 21 declared in library [androidx.navigation:navigation-compose:1.0.0-alpha10] AndroidManifest.xml as the library might be using APIs not available in 19 Suggestion: use a compatible library with a minSdk of at most 19, or increase this project's minSdk version to at least 21, or use tools:overrideLibrary="androidx.navigation.compose" to force usage (may lead to runtime failures)
My AndroidManifest.xml looks like this right now:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="androidx.navigation.compose" > <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="30" /> </manifest>
Would this be a simple matter of raising the project’s MinSDk or switching to a lower version library?
Source: Android Questions