Search code examples
androidcordovadirectorysd-card

Cordova Build Failed: Error starting modern compiler


HI i am trying to generate cordova 3.5.1.jar .but getting the below error in my command prompt window.Can any one help to sp

BUILD FAILED

E:\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\too ls\ant\build.xml:720: The following error occurred while executing this line: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\tools\ant\build.xml:734: Error starting modern compiler

Total time: 5 seconds


Solution

  • You probably have messed up with your Java installation by accident. If you want to troubleshoot Cordova build process you could run command below: cd <path/to/project> ant -v -f ./platforms/android/build.xml debug assuming that you are using cordova tool for the running build.