Ionic2 Pit Ionic build Android Error

Source: Internet
Author: User

My project has been running a good good, build or run no problem, today suddenly a small partner build has been an error. \

The error is as follows:

Error occurred during initialization of VMS
Could not reserve enough space for 2097152KB object heap

The first response is that there is not enough memory for the Java Virtual Machine and then press the new environment variable on the Web

Variable name: _java_options

Variable Value:-xmx512m

However, the problem has not been solved, and finally found the cause of the problem on a foreign website.

The original is a 64-bit system with 32-bit JDK installed.

The solution is to reinstall the 64-bit on the line.

Reference URL:

Http://stackoverflow.com/questions/30342629/error-ionic-run-android-on-device

Ionic2 Pit Ionic build Android Error

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.