美文网首页
1.8.阿里云云效 Maven

1.8.阿里云云效 Maven

作者: ChaosHeart | 来源:发表于2022-04-21 17:09 被阅读0次

    阿里云云效 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

    相关文章

      网友评论

          本文标题:1.8.阿里云云效 Maven

          本文链接:https://www.haomeiwen.com/subject/dkxwertx.html