無法下載Gradle
方法一:翻墻
方法二:手動下載 http://www.gradle.org/downloads
下載完之后,解壓到任何位置,在環境變量的path配置到gradle的bin目錄
- 報錯:Unrecognized VM option '+UseCodeCacheFlushing'
Could not create the Java virtual machine.
在studio安裝目錄下bin里找到*.vmoptions文件,刪除-XX:+UseCodeCacheFlushing - 報錯: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項目,搞定。
解決方案來源:
http://www.cnblogs.com/timeng/archive/2013/05/17/3084185.html
http://blog.csdn.net/zhanghefu/article/details/9286123