Tôi đang cố gắng tạo apk đã ký nhưng tôi luôn gặp lỗi tương tự.
To run dex in process, the Gradle daemon needs a larger heap.
It currently has approximately 910 MB.
For faster builds, increase the maximum heap size for the Gradle daemon to more than 2048 MB.
To do this set org.gradle.jvmargs=-Xmx2048M in the project gradle.properties.
Tôi không thể lưu tệp đó nhưng tôi đã thử sửa đổi gradle-wrapper.properties nhưng tôi vẫn gặp lỗi tương tự.
Đây là tệp gradle-wrapper.properties của tôi
#Thu May 05 20:51:44 CEST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
org.gradle.jvmargs=-Xmx2048m
Tôi cũng đã thử Android Gradle Không thể dành đủ dung lượng cho đống đối tượng