LoginSignup
0
0

More than 5 years have passed since last update.

「cordova build android」で「Error occurred during initialization of VM」というエラーが出た場合の対応方法

Last updated at Posted at 2016-08-13

原因

  • メモリが足りてるときはエラーが出なかったので理由が分からなかったがgradleのdeamon processのメモリが足りてなくてエラーが起こっている

対処方法

  • プロジェクトフォルダ(platformsとかpluginsとか入ってるフォルダ)に下記を記載した「gradle.properties」を作成
    ※公式にはuser homeに「gradle.properties」を作成すれば認識すると書いていたが、windows10環境では認識しなかった
org.gradle.jvmargs=-Xmx1024m

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0