ProcessException:ExecException:进程'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
我遇到异常:
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 云后端模块,我也面临同样的问题。
您的解决方案是here。
更具体地说,在 "Selectively compiling APIs into your executable" 部分 here.
通过使用 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
希望对您有所帮助。
我也有这个踪迹:
Uncaught translation error: java.lang.IllegalArgumentException:
already added: Lcom/mypackage/ClassX;
问题是我在两个不同的库中添加了相同的 class。从其中一个库中删除 class/jar 文件,项目 运行 正确
我遇到异常:
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 云后端模块,我也面临同样的问题。
您的解决方案是here。 更具体地说,在 "Selectively compiling APIs into your executable" 部分 here.
通过使用 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
希望对您有所帮助。
我也有这个踪迹:
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/mypackage/ClassX;
问题是我在两个不同的库中添加了相同的 class。从其中一个库中删除 class/jar 文件,项目 运行 正确