[英]Error:Execution failed for task ':app:dexDebug'. in android
我是android编程的新手。 当我运行我的应用程序时,它会显示这种错误
错误:任务':app:dexDebug'的执行失败。
com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程'命令'C:\\ Program Files \\ Java \\ jdk1.7.0_67 \\ bin \\ java.exe'以非零退出值2
这是我的胜利:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "uz.ums"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
useLibrary 'org.apache.http.legacy'
}
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:23.0.1'
compile 'com.github.traex.rippleeffect:library:1.3'
compile 'com.android.support:cardview-v7:23.0.1'
compile 'com.android.support:design:23.0.1'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
compile 'com.android.support:recyclerview-v7:+'
compile files('libs/picasso-2.5.2.jar')
compile 'com.squareup.okhttp3:okhttp:3.0.1'
}
我清理了项目并进行了重建,但这对我没有帮助。您能给我什么建议! 预先感谢
你可以试试这个
defaultConfig {
// Enabling multidex support.
multiDexEnabled true
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.