android stadio Gradle 编译报错

飒爽师叔2021-02-09笔记fastutil

我在编译插件时一直在下载fastutil-xxx.jar

原因是需要翻墙(可惜我试过了,没用)。剩下的方法就是改镜像源了,在主要编译文件,如build.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()
    }
}
最后更新时间 10/3/2023, 1:17:23 AM