java按零退出_Android工作室java。exe以非零退出值3結束。

I have pass through non-zero exit value 1,2, related to multidex issue, but now I am getting non-zero exit value 3.

我已經通過了非零出口值1,2,與multidex問題有關,但現在我得到了非零出口值3。

Studio Message :

工作室的信息:

Information:Gradle: Executing tasks: [:emoticons_lib_proj:assembleDebug, :myProject_Developement:assembleDebug]

Information:5/27/2015 5:56 PM - Compilation completed with 1 error and 0 warnings in 5m 58s 77ms

Error:Gradle: Execution failed for task ':myProject_Developement:dexDebug'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_20\bin\java.exe'' finished with non-zero exit value 3

com.android. idea .common. Process . processexception: org.gradle.process.internal.ExecException:進程“命令”C:\程序文件\Java\jdk1.8.0_20\bin\ Java。exe“以非零退出值3結束”。

I hope someone might have faced the issue and fixed. kindly let me know where I am misleading,

我希望有人能正視這個問題並解決它。請告訴我哪里有誤導,

5 个解决方案

#1

14

When your project contains large number of classes, android studio will throw out non-zero exit value 3 error.

當您的項目包含大量的類時,android studio將拋出非零退出值3錯誤。

To solve the error, add this in build.gradle file and sync project with gradle.

要解決這個錯誤,請在構建中添加這個錯誤。gradle文件和同步項目與gradle。

dexOptions {

javaMaxHeapSize "4g"

}

#2

8

FIXED SOLUTION: Increased the HEAP size to 2g or 4g.

固定解決方案:將堆大小增加到2g或4g。

android {

defaultConfig {}

dexOptions {

javaMaxHeapSize "4g"

}

packagingOptions {

}

buildTypes {

} }

#3

0

I have the same issue almost every day, and I always get rid of it by clearing and rebuilding the project. The worst case is restarting Android Studio.

我幾乎每天都有同樣的問題,我總是通過清理和重建項目來擺脫它。最壞的情況是重新啟動Android Studio。

#4

0

In my case, it seems to happen when running low on memory. I run Android Studio on a Windows 7 with 8 GB RAM, and every time the total RAM usage gets near 6 GB I get the same error code or a different one ("java.exe finished with non-zero exit value 1").

在我看來,這似乎是在內存不足的情況下發生的。我在Windows 7上運行了8 GB內存的Android Studio,每次總內存使用量接近6 GB時,我都會得到相同的錯誤代碼或不同的代碼(“java”)。exe以非零退出值1完成。

Closing some or all other programs (such as Internet browser, Android emulator) always solve the problem for me.

關閉一些或所有其他程序(如Internet瀏覽器、Android模擬器)總是能解決我的問題。

#5

0

I fixed my issue with: android{ dexOptions { javaMaxHeapSize "4g" } } try will make fix even you issue. I hope so..

我修正了我的問題:android{dexOptions {javaMaxHeapSize“4g}”嘗試將修復您的問題。我希望如此…

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值