当我尝试开始我的第一个Android项目时,出现此消息问题
[配置根项目“我的应用程序”时出现问题。
Could not resolve all artifacts for configuration ':classpath'. Could not find com.android.tools.build:gradle:3.6.0-rc01.]1
this is my build.gradle file
buildscript {
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.0-rc01'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
我已经下载了最新的gradle版本6.4.1。
我还尝试将存储库更改为以下所有内容:
-repositories {
google()
jcenter()
}
-repositories {
google()
}
-repositories {
google()
mavenCentral()
jcenter()
}
他们都没有工作
我正在使用Psiphon Vpn(我不确定是否相关)
我正在使用IntelliJ IDEA 2020.1.1
and I'm using Gradle 6.4.1
我用过android studio 3.6.3,但它也可以。
我希望你可以帮助我
最佳答案
使用classpath 'com.android.tools.build:gradle:3.6.3'
关于android - 找不到com.android.tools.build:gradle:3.6.0-rc01,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61897633/