1.8.阿里云云效 Maven

2022-04-21  本文已影响0人  ChaosHeart

阿里云云效 Maven

一:flutter配置flutter.gradle

buildscript {
    repositories {
//原版
       google()
       jcenter()
 //新版
        // maven { url 'https://maven.aliyun.com/repository/central/' }
        // maven { url 'https://maven.aliyun.com/repository/public/' }
        // maven { url 'https://maven.aliyun.com/repository/google/' }
        // maven { url 'https://maven.aliyun.com/repository/gradle-plugin/' }
//老版
        // maven { url 'https://maven.aliyun.com/nexus/content/repositories/central/' }
        // maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter/' }
        // maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
        // maven { url 'https://maven.aliyun.com/nexus/content/repositories/google/' }
        // maven { url 'https://maven.aliyun.com/nexus/content/repositories/gradle-plugin/' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.0'
    }
}
截屏2022-04-21 17.04.08.png

二:fluter配置Android

buildscript {
    ext.kotlin_version = '1.3.50'
    repositories {
//原版
        google()
        jcenter()
        //新版
        // maven { url 'https://maven.aliyun.com/repository/central/' }
        // maven { url 'https://maven.aliyun.com/repository/public/' }
        // maven { url 'https://maven.aliyun.com/repository/google/' }
        // maven { url 'https://maven.aliyun.com/repository/gradle-plugin/' }
//老版
        // maven { url 'https://maven.aliyun.com/nexus/content/repositories/central/' }
        // maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter/' }
        // maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
        // maven { url 'https://maven.aliyun.com/nexus/content/repositories/google/' }
        // maven { url 'https://maven.aliyun.com/nexus/content/repositories/gradle-plugin/' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}
allprojects {
    repositories {
//原版
        google()
        jcenter()
        //新版
        // maven { url 'https://maven.aliyun.com/repository/central/' }
        // maven { url 'https://maven.aliyun.com/repository/public/' }
        // maven { url 'https://maven.aliyun.com/repository/google/' }
        // maven { url 'https://maven.aliyun.com/repository/gradle-plugin/' }
//老版
        // maven { url 'https://maven.aliyun.com/nexus/content/repositories/central/' }
        // maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter/' }
        // maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
        // maven { url 'https://maven.aliyun.com/nexus/content/repositories/google/' }
        // maven { url 'https://maven.aliyun.com/nexus/content/repositories/gradle-plugin/' }
    }
}
截屏2022-04-21 17.07.28.png
上一篇 下一篇

猜你喜欢

热点阅读