Search code examples
androidfileandroid-studiomanifest

how to solve manifest merger file in android studio 3.4 above version?


Execution failed for task :app:processDebugManifest

Manifest merger failed:

uses-sdk:minSdkVersion 1 cannot be smaller than version 7 declared in library [com.android.support:appcompat-v7:23.2.0] C:\Users\bsuni\AndroidStudioProjects\Rec\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.2.0\AndroidManifest.xml Suggestion: use tools:overrideLibrary="android.support.v7.appcompat" to force usage


Solution

  • You have to update the minimum SDK 7 to 16. And also update the Max version to the latest. Always try to use the latest version and latest build version. Please try this build configuration:

    defaultConfig {
        applicationId "com.XXX.XXXX"  // your application package 
        multiDexEnabled true
        minSdkVersion 16  // here 16 so change accordingly 
        targetSdkVersion 28
        versionCode 1
        versionName "1.0.0"
    }
    

    And also update the all support version from 23.2.0 to 28.0.0.