Android studio Android Studio 3.6.3如何消除错误:无法解析对';的依赖关系:app@debug/compileClasspath';(androidx.fragment:fragment)

Android studio Android Studio 3.6.3如何消除错误:无法解析对';的依赖关系:app@debug/compileClasspath';(androidx.fragment:fragment),android-studio,gradle,android-studio-3.6,Android Studio,Gradle,Android Studio 3.6,我厌倦了每三/四次尝试构建项目时都会出现这样的错误: ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve androidx.fragment:fragment:[1.2.0]. Show Details Affected Modules: app 它还影响':app@debugUnitTest/编译路径“和”:app@debugAndroidTest/compileCl

我厌倦了每三/四次尝试构建项目时都会出现这样的错误:

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve androidx.fragment:fragment:[1.2.0].
Show Details
Affected Modules: app
它还影响<代码>':app@debugUnitTest/编译路径“和
”:app@debugAndroidTest/compileClasspath“
(显示了它们的相同错误)

有时还会发生以下生成错误(internet连接肯定是稳定的):

在出现此错误之前,
build.gradle
文件或任何其他gradle文件中没有任何更改

如果你能帮我把它处理掉就好了。Gradle插件版本=“1.3.71”

Unknown host 'repo.maven.apache.org: nodename nor servname provided, or not known'. You may need to adjust the proxy settings in Gradle.
Enable Gradle 'offline mode' and sync project
Learn about configuring HTTP proxies in Gradle