ProcessException: ExecException: Process 'command'/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

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

问题描述

我遇到异常:

错误:任务: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''完成非零退出值 2

在我将 Google Play 服务更新到 7.5.0 之后:

编译'com.google.android.gms:play-services:7.5.0'

但是如果我把它改回:

编译'com.google.android.gms:play-services:7.0.0'

一切正常,如果我在我的项目中添加 Google Cloud 后端模块,我也会面临同样的问题.

解决方案

您的解决方案在这里.更具体地说,在选择性地将 API 编译到您的可执行文件中"部分此处.>

通过使用 com.google.android.gms:play-services:7.5.0,您将使用所有 Google Play 服务 API 进行编译.您应该使用所需的 Google Play 服务 API.

例如,如果您需要 Google+,则使用 com.google.android.gms:play-services-plus:7.5.0

希望这会有所帮助.

I am getting exception:

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

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.

解决方案

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

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.

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

Hope this helps.

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

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