项目场景:
今天,刚打开自己的安卓项目发现报错:
报错:
* What went wrong:
Out of memory. Java heap spacePossible solution:
- Check the JVM memory arguments defined for the gradle process in:
gradle.properties in project root directory
问题描述
* What went wrong:
Out of memory. Java heap spacePossible solution:
- Check the JVM memory arguments defined for the gradle process in:
gradle.properties in project root directory
解决方案:
打开Android Studio中的 File —> Settings —> Appearance & Behavior —> System Settings
—> Memory Settings
把各项 都调高一点 就解决问题了
如有更好的解决方法,请大家贡献在评论区,让其他迷路的孩子有个方向。
迷路