我收到以下错误。我该如何解决这个问题?有人质疑这个问题,但这对我没有用。
错误:任务':app:dexDebug'执行失败。
com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程'命令'/ usr / lib / jvm / java-7-openjdk-amd64 / bin / java''完成具有非零退出值2
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.mukesh.airpollution"
minSdkVersion 15
targetSdkVersion 23
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:23.1.1'
compile 'com.android.support:design:23.1.1'
}
dependencies {
compile 'com.loopj.android:android-async-http:1.4.4'
}
dependencies {
compile 'com.google.code.gson:gson:2.2.4'
}
dependencies {
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.parse.bolts:bolts-android:1.+'
compile 'org.jsoup:jsoup:1.7.3'
}
dependencies {
compile group: 'cz.msebera.android' , name: 'httpclient', version: '4.4.1.1'
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.google.maps.android:android-maps-utils:0.4+'
}
dependencies {
compile 'com.android.support:recyclerview-v7:23.0.+'
}
dependencies {
compile 'com.android.support:design:23.1.1'
}
答案 0 :(得分:0)
你有
compile 'com.google.android.gms:play-services:8.3.0'
和
compile 'com.google.android.gms:play-services:8.4.0'
尝试删除其中一个
答案 1 :(得分:0)
将build.gradle代码更改为以下代码。
/layout