1. 程式人生 > >Manifest merger failed : Error:Execution failed for task ':app:processDebugManifest'.

Manifest merger failed : Error:Execution failed for task ':app:processDebugManifest'.



Error:Execution failed for task ':app:processDebugManifest'.

再AS的右下角有一個Gradle Console,裡面有具體的error資訊;

再app的gradle中的android{}里加入configuration.all{},具體如下:
android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    
defaultConfig { applicationId "com.example.administrator.hlfconnect" minSdkVersion 15 targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"


configurations.all {
    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
        def 
requested = details.requested if (requested.group == 'com.android.support') { if (!requested.name.startsWith("multidex")) { details.useVersion '25.3.0' } } } }

就ok了

有問題上stackoverflow找你遇到的問題,如果是火狐或chrome瀏覽器安個劃詞翻譯外掛,英文就能看懂了