ionic android build - not enough memory to start jvm

后端 未结 6 1435
盖世英雄少女心
盖世英雄少女心 2020-12-28 09:21

When trying to create an android apk file using ionic and gradle, i get an error

FAILURE: Build failed with an exception.

* What went wrong:
Unable to star         


        
6条回答
  •  抹茶落季
    2020-12-28 10:03

    This issue was found to be environment specific. Posting the answer only to help those who might have this unfortunate problem.

    The problem was solved by installing a 32 bit JDK on the 64 bit Windows 7.

    Before installing

    1. Remove all the JRE and JDK installation by going to Application Manager
    2. Remove all environment variables pertaining to your old Java installation
    3. Update / Remove all the Java related entries from the Path variable. (Do not remove the path variable)
    4. Restart the system
    5. Install the downloaded JDK
    6. Go to Environment Variables and add the required keys
    7. Update the Path variable to include the JDK bin folder

    I do not have a clue why this has happened, but the issue has been resolved.

提交回复
热议问题