【发布时间】:2021-04-29 10:26:31
【问题描述】:
在构建 android 应用程序时,附上了我面临的问题。 Could not resolve all artifacts for configuration
下面是我正在使用的项目级 gradle 文件。
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.2'
}
}
allprojects {
repositories {
google()
jcenter()
flatDir {
dirs 'libs'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
我尝试使用 gradle build tools 版本(4.0.2、4.1.0),仍然遇到同样的问题。 '无法解析配置的所有工件' 我正在使用 Android Studio 4.1.2,在 Windows 机器上始终使用 VPN,在此之前(始终使用 VPN)它曾经对我有用。不知何故,这现在不起作用。有人能帮我一个吗?
【问题讨论】:
标签: android android-studio gradle android-gradle-plugin build.gradle