简体   繁体   中英

Java Heap Space error while running Android app in Android Studio

I am a newbie to Android Studio . When I try to run a sample Android app I am getting the following error :

Error:Java heap space Please assign more memory to Gradle in the project's gradle.properties file.

I have changed the following in the studio.vmoptions file in bin

-Xms512m

-Xmx1024m

But changing to the above values also doesn't help.

Can anyone guide me step by step what to do.

There is possibly an infinite loop in your code using up all the virtual memory, try checking any loops or recursive function calls. Or you can post your code or part of it to help you out better

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