【发布时间】:2019-10-09 19:51:09
【问题描述】:
这是我得到的错误:
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>
这是因为:
implementation 'nl.bravobit:android-ffmpeg:1.1.7'
当我删除该错误消失了。嗯,错误是说将堆大小增加到 1024MB,而我确实将它增加到 10GB,它仍然无法工作。这就是连线。
org.gradle.jvmargs=-Xmx10000m
仍然遇到同样的错误。也试过这个:
<application
android:largeHeap="true">
仍然没有机会。请不要建议使用替代库,因为我不能。
【问题讨论】:
-
它不是 Android 上的 OOM,它在构建您的应用程序时会耗尽您的 PC 上的内存。与manifest文件无关
标签: android gradle ffmpeg out-of-memory heap-memory