Android Studio永远无法下载fastutil-7.2.0.jar

Android Studio永远无法下载fastutil-7.2.0.jar,android,android-studio,android-studio-4.0,Android,Android Studio,Android Studio 4.0,类似问题: 当我用Java构建我的第一个Android应用程序时,Android Studio 4.0总是抱怨: Could not GET 'https://jcenter.bintray.com/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.jar'. Received status code 400 from server: Bad Request Enable Gradle 'offline mode' and sync project 但是,可

类似问题:

当我用Java构建我的第一个Android应用程序时,Android Studio 4.0总是抱怨:

Could not GET 'https://jcenter.bintray.com/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.jar'. Received status code 400 from server: Bad Request
Enable Gradle 'offline mode' and sync project
但是,可以使用浏览器下载
jar

如果在
build.gradle
中删除
jcenter()
,则会发生类似的错误:

Could not HEAD 'https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.72/kotlin-stdlib-jdk8-1.3.72.pom'. Received status code 400 from server: Bad Request
Enable Gradle 'offline mode' and sync project
这个文件根本不存在

我试图修改
build.gradle
或设置代理,但都不起作用

gradle.build
文件:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath "com.android.tools.build:gradle:4.0.0"

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

allprojects {
    repositories {
        google()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
更新:


解决了。代理的错。检查
C:\Users\USERNAME\.gradle\gradle.properties

发布您的构建gradlefile@NongthonbamTonthoi更新。谢谢。那么您的模块应用程序级别build.gradle中有
实现组:'it.unimi.dsi',名称:'fastutil',版本:'7.2.0'
?这可能是由代理引起的,请检查您的代理是否处于代理之下,如果是,您应该在Android Studio中添加代理设置。@nongthonbamtothoi我在app/build.gradle中找不到“fastutil”。顺便说一句,所有配置文件都是由IDE创建的,没有修改。您是否在模块应用程序级别build.gradle文件中添加了上述依赖项?请参见如何添加依赖项