0

の初期化中に発生した、私はプロジェクトを作成している私は「コルドバはアンドロイド構築」コマンドを使用してプロジェクトをビルドしようとすると、しかし、私は以下のエラーメッセージが表示されます:コルドバイオン性エラーは、私はコルドバに新たなんだVM

Error: cmd: Command failed with exit code 1 Error output: 
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 https://docs.gradle.org/ 
2.14.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 2097152KB object heap 


* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug 
option to get more log output. 

私はイオンフレームワークを使用しています。これを手助けしてください!

ありがとうございました!

+0

これを参照してくださいhttp://stackoverflow.com/questions/9303889/error-occurred-during-initialization-of-vm-could-not-reserve-enough-space-for –

答えて

0

私はそれがヒープ上のメモリの問題であることがわかります。 jvmargsを設定する必要があります。 JVMオプションを設定します。

ソリューションは、ユーザのホーム(.gradle username.gradleか〜\ \ユーザーC):でファイルgradle.propertiesを作成することですあなたに応じて

org.gradle.jvmargs=-Xmx1024m -XX:MaxPermSize=256m 

注意OSでは、1024mでerrosを投げて512mで試してみることができます。

ストーリーについては、flag XmxはJava仮想マシン(JVM)の最大メモリー割り当てプールを指定します。

+0

このjvmオプションはどこにありますか.gradleで。つまり、 'キャッシュ'、 'デーモン'、 'ネイティブ'、 'ラッパー'の4つのフォルダがあります。 –

関連する問題