ProcessException:ExecException:处理'命令'/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Content/Home/bin/java [英] ProcessException: ExecException: Process 'command ' /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Content/Home/bin/java

查看:1470
本文介绍了ProcessException:ExecException:处理'命令'/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Content/Home/bin/java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到异常:

Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2

在我更新了谷歌播放服务,以 7.5.0 为:

after i updated the Google Play services to 7.5.0 as:

compile 'com.google.android.gms:play-services:7.5.0'

但如果我改回:

but if i change it back to:

compile 'com.google.android.gms:play-services:7.0.0'

一切工作正常,我也面临着同样的问题,如果我加入谷歌的云后端模块在我的项目。

everything is working fine, i am also facing the same problem if i add Google Cloud Backend Module in my project.

推荐答案

您的解决方案是这里。 更具体的有选择的API编译成可执行文件部分 href="https://developers.google.com/android/guides/setup#split" rel="nofollow">。

Your solution is here. More specifically at the "Selectively compiling APIs into your executable" section here.

通过使用com.google.android.gms:玩-服务:7.5.0,您是编译所有的谷歌播放服务API。 你应该用你所需要的谷歌播放服务API。

By using com.google.android.gms:play-services:7.5.0, you are compiling with all Google Play services APIs. You should use the Google Play services APIs that you need.

例如,如果你需要Google+的,那你就用,com.google.android.gms:玩 - 服务 - 以及:7.5.0

For example, if you need Google+, then you use, com.google.android.gms:play-services-plus:7.5.0

希望这有助于。

这篇关于ProcessException:ExecException:处理'命令'/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Content/Home/bin/java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆