Android   发布时间:2022-04-28  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了ProcessException:ExecException:进程’command’/ 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

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

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

但如果我改回来:

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

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

最佳答案
您的解决方案是here.
更具体地说,在“选择性地将API编译到您的可执行文件”部分here中.

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

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

希望这可以帮助.

大佬总结

以上是大佬教程为你收集整理的ProcessException:ExecException:进程’command’/ Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Content/Home/bin/java全部内容,希望文章能够帮你解决ProcessException:ExecException:进程’command’/ Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Content/Home/bin/java所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。