Java android:错误:任务';的执行失败:应用程序:dexDebug';

Java android:错误:任务';的执行失败:应用程序:dexDebug';,java,android,android-async-http,Java,Android,Android Async Http,运行项目时出现以下错误: 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

运行项目时出现以下错误:

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
在它运行良好之前

我正在尝试整合

页面显示要集成以下行:

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:我正在使用安卓Studio 1.4 beta 4开发ubuntu 15.0.4。Java版本是Oracle Java 8 update 60。

只需替换即可

compile "com.google.android.gms:play-services:7.8.0"


不要直接使用play service library,因为其中包含太多库。请查看此更新。工作。。但是没有得到“-gcm:”部分。。为什么需要添加这个?因为只有play services:7.8.0包含了如此多的选项,所以多个dex出现了问题。如果你需要忽略这一点,你必须只使用你需要的部分。e、 g.游戏服务gcm:7.8.0由android开发者阅读本官方文档。
compile 'com.google.android.gms:play-services-gcm:7.8.0'