Error:Execution failed for task ':app:dexDebug'.....' finished with non-zero exit value 2
Error:Execution failed for task ':app:dexDebug'.....' finished with non-zero exit value 2
错误:任务“:app:dexDebug”执行失败。
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_75\bin\java.exe'' finished with non-zero exit value 2
我阅读了一些建议,我尝试了所有这些建议,但仍然无法得到 problem.Plz 帮助
此处依赖->
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.1.1'
compile files('libs/google-play-services.jar')
compile files('libs/Parse-1.3.2.jar')
compile files('libs/Parse-1.6.0.jar')
}
删掉一个Parse.jar(Android工作室不知道该选哪个版本)
compile 'com.google.android.gms:play-services:7.5.0'
而不是
compile files('libs/google-play-services.jar')
因为 google 服务包含 res 文件,因此不能仅通过 .jar 导入它们
- 删除
compile fileTree(dir: 'libs', include: ['*.jar'])
因为你不想编译所有库中的内容。
错误:任务“:app:dexDebug”执行失败。
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_75\bin\java.exe'' finished with non-zero exit value 2
我阅读了一些建议,我尝试了所有这些建议,但仍然无法得到 problem.Plz 帮助
此处依赖->
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.1.1'
compile files('libs/google-play-services.jar')
compile files('libs/Parse-1.3.2.jar')
compile files('libs/Parse-1.6.0.jar')
}
删掉一个Parse.jar(Android工作室不知道该选哪个版本)
compile 'com.google.android.gms:play-services:7.5.0'
而不是
compile files('libs/google-play-services.jar')
因为 google 服务包含 res 文件,因此不能仅通过 .jar 导入它们
- 删除
compile fileTree(dir: 'libs', include: ['*.jar'])
因为你不想编译所有库中的内容。