0

When I open Android Studio after closing suddenly Android Studio reports an error Could not reserve enough space for 1572864KB object heap and the RUN button is disabled. How can I recover?

To see error click here

This Image describe the problem.

2
  • Have you tried to Lower the amount of space for Java VM heap? – Ramhound Jan 25 '19 at 15:33
  • Yes after that i solve the error. – Suvidha Malaviya Jan 25 '19 at 15:51
0

After some time i find the solution. The gradle.properties file contains the error. The HeapSize for configure gradle is not correct i replace the -Xmx1572m with -Xmx1024m and close the android project and open it again and sync it, rebuild it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.