android - 找不到com.android.tools.build:gradle:3.6.0-rc01

标签 android gradle

当我尝试开始我的第一个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/

相关文章:

android - DialMyApp 如何在 Android 设备上运行?

安卓电视 : PlaybackControlsRow action long press

android - 以编程方式将 TextView 置于 TableRow 上

java - 我们可以在android中将哪些值作为整数传递给setImageResource(),无法理解setImageResource(17301533)?

grails - 如何以编程方式设置gradle依赖项

gradle - 如何更改Gradle中第三方插件添加的任务组?

android - 使用自定义参数实现 AndroidX Worker

android - 需要Gradle 2.1版

web-services - Gradle项目构建失败

android - Jitpack:无法通过示例库解决(Android Studio)