Android Studio fails to debug with Error:Execution failed for task ':app:preDexDebug'.Pl

◇◆丶佛笑我妖孽 提交于 2019-12-02 22:03:34

问题


When I run my project, it shows the error in the title. What is the solution?

apply plugin: 'com.android.application'

android {
    compileSdkVersion 24
    buildToolsVersion "24.0.0"

defaultConfig {
    applicationId "com.bangloss.boss.myapplication"
    minSdkVersion 10
    targetSdkVersion 24
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'

compile 'com.android.support:appcompat-v7:24.1.1'
compile 'com.android.support:design:24.1.1'
}

来源:https://stackoverflow.com/questions/38711992/android-studio-fails-to-debug-with-errorexecution-failed-for-task-apppredexd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!