Cordova Environment Configuration Exception A

Source: Internet
Author: User



Company ERP also began to enter the field of mobile phones. Configuration Cordova found some strange things can not be compiled, can not start the exception, this kind of problem is not the problem of the program, but the environment configuration problems. Old rules



1) First check whether the packet is less



2) Check that each tool is using the same version of the Java JDK. One is the version number, two is x86 or x64, this is also need to pay attention to



3) Check if the target version of the compilation is one to


[dex] input: D:\vsworkspace\whatsvape\platforms\android\ant-build\classes
      [dex] input: D:\vsworkspace\whatsvape\platforms\android\CordovaLib\ant-bui
ld\classes.jar
      [dex] Pre-Dexing D:\vsworkspace\whatsvape\platforms\android\CordovaLib\ant
-build\classes.jar -> classes-a5a6808b08ed5a81eb057fbbacde9018.jar
       [dx] Error occurred during initialization of VM
       [dx] Could not reserve enough space for object heap
       [dx] Error: Could not create the Java Virtual Machine.
       [dx] Error: A fatal exception has occurred. Program will exit.
       ................
       D:\vsworkspace\whatsvape\platforms\android\cordova\node_modules\q\q.js:126
                    throw e;
                          ^
Error code 1 for command: cmd with args: /s /c "ant debug -f D:\vsworkspace\what
svape\platforms\android\build.xml -Dout.dir=ant-build -Dgen.absolute.dir=ant-gen
"
ERROR building one of the platforms: Error: D:\vsworkspace\whatsvape\platforms\a
ndroid\cordova\build.bat: Command failed with exit code 8
You may not have the required environment or OS to build this project
Error: D:\vsworkspace\whatsvape\platforms\android\cordova\build.bat: Command fai
led with exit code 8
    at ChildProcess.whenDone (C:\Users\Administrator\AppData\Roaming\npm\node_mo
dules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)



Cordova Environment Configuration Exception A


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.