android : Error:Execution failed for task ':app:dexDebug'
android : Error:Execution failed for task ':app:dexDebug'
在 运行 项目时出现以下错误:
Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 2
之前是运行好吧。
我正在尝试整合 Android Asynchronous Http Client
页面说要集成以下行:
dependencies {
compile 'com.loopj.android:android-async-http:1.4.9'
}
所以,我的结果 build.gradle 是:
...
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.github.johnkil.android-robototextview:robototextview:2.4.0'
compile 'com.android.support:design:23.0.1'
compile 'de.hdodenhof:circleimageview:1.3.0'
compile 'com.github.clans:fab:1.6.0'
compile 'com.cocosw:bottomsheet:1.+@aar'
compile 'com.android.support:cardview-v7:23.0.1'
compile 'com.android.support:recyclerview-v7:23.0.1'
compile 'org.igniterealtime.smack:smack-android:4.1.3'
compile 'org.igniterealtime.smack:smack-bosh:4.1.3'
compile 'org.igniterealtime.smack:smack-tcp:4.1.3'
compile 'org.igniterealtime.smack:smack-im:4.1.3'
compile 'org.jxmpp:jxmpp-jid:0.5.0-alpha6'
compile 'org.igniterealtime.smack:smack-extensions:4.1.3'
compile 'com.android.support:support-v4:23.0.1'
compile files('libs/volley-1.0-SNAPSHOT.jar')
compile project(':emoji')
compile "com.google.android.gms:play-services:7.8.0"
compile 'com.loopj.android:android-async-http:1.4.9'
}
...
请帮帮我。
PS: 我正在开发 ubuntu 15.0.4 和 Android Studio 1.4 beta 4. Java 版本是 Oracle java 8 更新 60.
只需更换
compile "com.google.android.gms:play-services:7.8.0"
和
compile 'com.google.android.gms:play-services-gcm:7.8.0'
在 运行 项目时出现以下错误:
Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 2
之前是运行好吧。
我正在尝试整合 Android Asynchronous Http Client
页面说要集成以下行:
dependencies {
compile 'com.loopj.android:android-async-http:1.4.9'
}
所以,我的结果 build.gradle 是:
...
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.github.johnkil.android-robototextview:robototextview:2.4.0'
compile 'com.android.support:design:23.0.1'
compile 'de.hdodenhof:circleimageview:1.3.0'
compile 'com.github.clans:fab:1.6.0'
compile 'com.cocosw:bottomsheet:1.+@aar'
compile 'com.android.support:cardview-v7:23.0.1'
compile 'com.android.support:recyclerview-v7:23.0.1'
compile 'org.igniterealtime.smack:smack-android:4.1.3'
compile 'org.igniterealtime.smack:smack-bosh:4.1.3'
compile 'org.igniterealtime.smack:smack-tcp:4.1.3'
compile 'org.igniterealtime.smack:smack-im:4.1.3'
compile 'org.jxmpp:jxmpp-jid:0.5.0-alpha6'
compile 'org.igniterealtime.smack:smack-extensions:4.1.3'
compile 'com.android.support:support-v4:23.0.1'
compile files('libs/volley-1.0-SNAPSHOT.jar')
compile project(':emoji')
compile "com.google.android.gms:play-services:7.8.0"
compile 'com.loopj.android:android-async-http:1.4.9'
}
...
请帮帮我。
PS: 我正在开发 ubuntu 15.0.4 和 Android Studio 1.4 beta 4. Java 版本是 Oracle java 8 更新 60.
只需更换
compile "com.google.android.gms:play-services:7.8.0"
和
compile 'com.google.android.gms:play-services-gcm:7.8.0'