构建apk时出错,无效的最大堆大小:-Xmx4g

时间:2016-01-27 02:31:18

标签: java android

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:compileFlavorReleaseSources
:collectFlavorReleaseMultiDexComponents
:proguardFlavorRelease
Warning:can't write resource [.readme] (Duplicate zip entry [classes.jar:.readme])
:shrinkFlavorReleaseMultiDexComponents
:createFlavorReleaseMainDexClassList
:retraceFlavorReleaseMainDexClassList
:dexFlavorRelease
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Invalid maximum heap size: -Xmx4g
The specified size exceeds the maximum representable size.
Error:Execution failed for task ':dexFlavorRelease'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_45\bin\java.exe'' finished with non-zero exit value 1

任何人都可以帮助我?

0 个答案:

没有答案