Solve the Problem of errors reported during build or run in Cordova command line mode.

Source: Internet
Author: User

If the platform is not built, it sometimes does not work because its platform folder contains directories of various platforms. And then run the code of this file.

The principle is basically described above, but you will find that saving and running after modification in eclipse sometimes cannot be built. No matter how you refresh or clean the project, you must generate and run it in the command line. However, the following error is reported in the command line:

The prompt says that the heap space is insufficient and the Java Virtual Machine cannot be started. This error has plagued me for a long time. Previously, it was solved by shutting down unnecessary programs in the system to save memory space, however, this operation is very troublesome and sometimes does not work. You have to restart the machine. After studying the problem, you finally get the solution: Create a variable in the system variable named _ java_options, variable value:-xmx512m. After confirmation, run nodejs to generate the running project and no error will be reported.


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: 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.