0
在运行项目得到以下错误:机器人:错误:执行失败的任务“:应用程序: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:[email protected]'
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 1.4工作室4.测试Java版本是Oracle的Java 8日更新60
请勿直接使用play-service库,因为它包含太多的库,请检查此https://developers.google.com/android/guides/setup –
只是一分钟..我在上面.. –
Upvoted。工作..但没有得到“-gcm:”部分..为什么需要添加? –