android stadio 编译报错:download fastutil-7.2.0.jar

在Ubuntu上面,新安装的stadio,第一次编译项目的时候,
一直开在下载 fastutil-7.2.0.jar

原因是需要FQ。那么改一下你的buil.gradle

buildscript {
    
    repositories {
        maven{ url = "http://maven.aliyun.com/nexus/content/groups/public/" }
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.2'
        

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        maven{ url = "http://maven.aliyun.com/nexus/content/groups/public/" }
        google()
        jcenter()
    }
}
posted @ 2019-03-17 02:03  有点理想的码农  阅读(12563)  评论(0编辑  收藏  举报