0.環境

[OS]             Windows7 (32bit 版)
[AndroidStudio]  1.1.0

1.エラー内容

  • AndroidStudioで「Run ‘app’」ボタンをクリックし、ビルド&実行しようとすると下記エラーが発生しました。

    Error: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.
    

2.回避方法

  • Android Studioを閉じます。

  • 下記フォルダを削除。(不安な場合は例えば次のようにリネーム DELETE_.gradle)

    C:\ユーザー\【ユーザー名】\.gradle
    
  • Android Studioを起動。

  • 上記で消した.gradleフォルダが再作成され、ビルド&実行が成功しました。

3.参考にしたページ