我得到這個錯誤,而我試圖創建一個科爾多瓦的PhoneGap應用程序,並在最後一步,而我使用的生成命令VM錯誤而構建科爾多瓦的PhoneGap
cordova build android
我得到這個錯誤:
錯誤
D:\rmapp>cordova run android Running command: D:\rmapp\platforms\android\cordova\run.bat ANDROID_HOME=D:\Android\sdk JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_71 WARNING : No target specified, deploying to device '192.168.56.100:5555'. Running: D:\rmapp\platforms\android\gradlew cdvBuildDebug -b D:\rmapp\platform s\android\build.gradle -PcdvBuildArch=x86 -Dorg.gradle.daemon=true FAILURE: Build failed with an exception. * What went wrong: Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at http://gradle.org/docs/2 .2.1/userguide/gradle_daemon.html Please read the following process output to find out more: ----------------------- Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. D:\rmapp\platforms\android\cordova\node_modules\q\q.js:126 throw e; ^ Error code 1 for command: cmd with args: /s /c "D:\rmapp\platforms\android\grad lew cdvBuildDebug -b D:\rmapp\platforms\android\build.gradle -PcdvBuildArch=x86 -Dorg.gradle.daemon=true" ERROR running one or more of the platforms: Error: D:\rmapp\platforms\android\c ordova\run.bat: Command failed with exit code 1 You may not have the required environment or OS to run this project
請粘貼您的錯誤代碼,而不是代碼截圖。將來,那些查找錯誤代碼的人可以找到相關的線程。 –
與[generator-m](https://github.com/mwaylabs/generator-m)項目 – IsmailS
面臨同樣的錯誤第三次以某種方式工作。可能是我沒有連接到互聯網。第三次從https://repo1.maven.org/maven2/com/android/tools/下載了大量文件,然後在設備上成功安裝了應用程序。 – IsmailS