gradle project sync failed. basic functionality(e.g editing, debugging) will not work properly in android studio 1.0.1

前端 未结 4 2185
眼角桃花
眼角桃花 2021-02-15 22:55

I have started using Android Studio 1.0.1 and there is nothing I can do as I have this error and even the XML can\'t be rendered.

Error:Unable to start the daemon proces

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-15 23:19

    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.

    Same thing happened with me.It is just because your 32 bit OS doesn't have enough space. Here is the solution,

    1.Open File->Settings->Build tools->Compiler

    2.there in compiler you just update VM-options to -Xmx512m -XX:MaxPermSize=512m

    Note:You need to type the same, including the space in between.

                            OR
    

    1.Just update the line in gradle.properties # org.gradle.jvmargs=-Xmx512m -XX:MaxPermSize=512m

提交回复
热议问题