android stadio 一直在下载download fastutil-7.2.0.jar

2022-07-13 21:31:12 浏览数 (1)

重新装了个系统,然后新装Android Studio导入项目时一直在下载 fastutil-7.2.0.jar

原因是需要科学。所以改一下你的buil.gradle

代码语言:javascript复制
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()
    }
}

0 人点赞