1更改studio的VM大小
32位的系统打开studio.exe.vmoptions文件,如果是64位的话打开studio64.exe.vmoptions,改动以下配置,根据各自配置适当调节。
-Xms1024m
-Xmx4096m
-XX:MaxPermSize=2048m
-XX:ReservedCodeCacheSize=1024m
2加入云仓库
buildscript {
repositories {
google()
maven{
url "https://repo1.maven.org/maven2/"}
maven{
url "https://repository.jboss.org/maven2/"}
maven{
url "https://repository.sonatype.org/content/groups/public/"}
maven{
url "https://jitpack.io"