テスト

らびブログ

2024年 2023年 2022年 ...

[Android] gradle.propertiesの場所

Android Studioで以下の様なエラーが出てしまいました。
Failed to sync Gradle project 'KeepConnectAd'  Error:  Unable to start the daemon process: could not reserve enough space for object heap.  Please assign more memory to Gradle in the project's gradle.properties file.  For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB:  org.gradle.jvmargs=-Xmx1024m  Read Gradle's configuration guide  Read about Java's heap size
gradle.propertiesがプロジェクト内には無かったのでプロジェクトのルートに作成して テキストエディタで「org.gradle.jvmargs=-Xmx1024m」を書き込んだところ、エラーが出なくなりました。
gradle.properties
テスト
©2015-2024 RabiSoft