flutter android gradle 配置

buildscript {
    repositories {
        maven{url 'https://maven.aliyun.com/repository/public'}
        maven{url 'https://maven.aliyun.com/repository/google'}
        maven{url 'https://maven.aliyun.com/repository/central'}
        maven{url 'https://maven.aliyun.com/repository/gradle-plugin'}

        google()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.0'
    }
}

allprojects {
    repositories {
        maven{url 'https://maven.aliyun.com/repository/public'}
        maven{url 'https://maven.aliyun.com/repository/google'}
        maven{url 'https://maven.aliyun.com/repository/central'}
        maven{url 'https://maven.aliyun.com/repository/gradle-plugin'}

        google()
        mavenCentral()
    }
}

 

posted @ 2022-04-20 22:51  lobtao  阅读(197)  评论(0)    收藏  举报