![](/img/trans.png)
[英]How to resolve “error: ';' expected” error in Android Studio?
[英]How to resolve error with Android Studio
我正在使用Windows 7 x32bit和Android Studio v0.8.6,安裝后出現gradle錯誤。
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/1.12/userguide/gradle_daemon.html
Please read below 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.
在android studio安裝目錄中編輯studio.exe.vmoptions或studio64.exe.vmoptions,然后編輯Xms,Xmx,MaxPermSize選項。
在gradle.properties文件中為gradle設置vmoptions。 我將Xmx設置為256m,將MaxPermSize設置為128m。
但是,這可能會減慢您的Android Studio和/或Gradle構建過程。 如果可以,請將內存升級到8 GB ,然后將操作系統升級到64位。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.