´íÎóÐÅÏ¢£º
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: <em>org.gradle.jvmargs=-Xmx1024m</em> <a href="http://www.gradle.org/docs/current/userguide/build_environment.html">Read Gradle's configuration guide</a><br><a href="http://docs.oracle.com/javase/7/docs/technotes/guides/vm/gc-ergonomics.html">Read about Java's heap size</a> |
½â¾ö·½°¸»ù±¾²½ÖèÈçÏ£º
£¨1£©ÕÒµ½Ä¿Â¼C:\Users\Administrator\.gradle
£¨2£©Èç¹ûÔÚ¸ÃĿ¼ÏÂÓÐÎļþ£¬ÔòÔÚÎļþĩβÌí¼ÓÒ»ÐдúÂ룻
org.gradle.jvmargs=-Xmx1024m |
£¨3£©Èô²»´æÔÚÉÏÃæµÄÎļþ£¬Ôòн¨Ò»¸öͬÃûÎļþ£¬²¢µ½ÆäËûÈ˵çÄÔÉϵÄAndroidStudioÖп½±´¸ÃÎļþϵÄËùÓÐÄÚÈÝ£¬È»ºóÔÚ×îºóÌí¼ÓÉÏÃæµÄ´úÂ룻
£¨4£©ÖØÆôAndroid studioн¨¹¤³Ì¼´¿É¡£
Ó¢ÎĽâ¾ö·½·¨ÃèÊö£º
Do Following steps: 1.Start Android Studio. 2.Close any open project.Go to File > Close Project.(Welcome window will open) 3.Go to Configure > Settings. 4.On Settings dialog,select Compiler (Gradle-based Android Projects) from left and set VM Options to -Xmx512m(i.e. write -Xmx512m under VM Options:) and press OK. |
Ïà¹Ø½ØͼÈçÏ£º