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