简体   繁体   中英

Errors while run project or build apk

当我清理/构建项目时发现0错误,但是当我运行/构建APK 5错误时,我使用32b系统和2gb内存运行android studion,但在此处输入图像描述

The error says invalid maximum heap size 4GB, but your system is only 2GB, so it exceeds the system memory. you need to configure the acceptable heap size.

You can set the maximum memory usage to 1GB, like -Xmx1024 , restart your IDE and it should work

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM