android studio编译错误提示无法下载仓库

一、调整方法之一

复制代码
buildscript {
    repositories {
       google()
        jcenter()
        //maven { url 'https://maven.aliyun.com/repository/google' }
        //maven { url 'https://maven.aliyun.com/repository/central' }
    }
    dependencies {
       // classpath "com.android.tools.build:gradle:4.1.1"
        classpath "com.android.tools.build:gradle:4.3.1"
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        //maven { url 'https://maven.aliyun.com/repository/google' }
        //maven { url 'https://maven.aliyun.com/repository/central' }
    }
}
相关推荐
whysqwhw11 分钟前
安卓实现屏幕共享
android
深盾科技29 分钟前
Kotlin Data Classes 快速上手
android·开发语言·kotlin
一条上岸小咸鱼1 小时前
Kotlin 基本数据类型(五):Array
android·前端·kotlin
whysqwhw1 小时前
Room&Paging
android
whysqwhw1 小时前
RecyclerView超长列表优化
android
Tiger_Hu1 小时前
Android系统日历探索
android
whysqwhw1 小时前
RecyclerView卡顿
android
whysqwhw1 小时前
RecyclerView 与 ListView 在性能优化方面
android
檀越剑指大厂4 小时前
容器化 Android 开发效率:cpolar 内网穿透服务优化远程协作流程
android
MiyamuraMiyako5 小时前
从 0 到发布:Gradle 插件双平台(MavenCentral + Plugin Portal)发布记录与避坑
android