AS报错

报错:Error occurred during initialization of VM

                           Could not reserve enough space for object heap

                           Could not create the Java virtual machine.

         定位到目录 C:\Users\<username>\.gradle

         创建文件gradle.properties

         内容:org.gradle.jvmargs=-Xmx512m

         重启你的Android Studio项目,搞定。

 

 

Gradle project sync failed. Please fix your project and try again

方案二:
File -> Settings 搜索Gradle,做如下修改(指定手动下载的gradle的位置),gradle下载,请戳这儿:点击打开链接
 

 

勾选 offline work

猜你喜欢

转载自1197757723.iteye.com/blog/2344745
今日推荐