无法在Android Studio中生成SIGNEDD APK

问题描述 投票:0回答:1

我正在尝试构建一个已签名的APK。在Gradle构建43分钟之后,它由于出现一些随机内存错误而失败。

Out of memory: Java heap space.
Please assign more memory to Gradle in the project's gradle.properties file.
For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB:
<em>org.gradle.jvmargs=-Xmx1024m</em>

我尝试在gradle.properties中添加org.gradle.jvmargs=-XX\:MaxHeapSize\=1024m -Xmx1024m,仍然没有运气。

任何建议将不胜感激。谢谢。

android android-studio
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.