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

前端 未结 6 2487
南方客
南方客 2021-02-15 22:59

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

6条回答
  •  醉酒成梦
    2021-02-15 23:31

    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

提交回复
热议问题