【发布时间】:2020-05-19 17:55:47
【问题描述】:
当我尝试开始我的第一个 Android 项目时,我收到这条消息的问题
[配置根项目“我的应用程序”时出现问题。
无法解析配置“:classpath”的所有工件。 找不到 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(我不确定它是否相关)
我正在使用 intellj IDEA 2020.1.1
我使用过 android studio 3.6.3,但它也可以工作。
希望你能帮到我
【问题讨论】:
-
你目前的工作室版本是什么?
-
我目前的android studio版本是3.6.3