Flutter-window配置

环境配置

pub

新增环境变量

PUB_HOSTED_URL ===== https://pub.flutter-io.cn
FLUTTER_STORAGE_BASE_URL ===== https://storage.flutter-io.cn

项目配置

gradle配置

/android/gradle/wrapper/gradle-wrapper.properties

// distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
// download: https://services.gradle.org/distributions/gradle-4.10.2-all.zip
distributionUrl=file:///D:/Android/gradle-4.10.2-all.zip

maven配置

/android/build.gradle

buildscript {
    repositories {
        maven{ url 'https://maven.aliyun.com/repository/google' }
        maven{ url 'https://maven.aliyun.com/repository/jcenter' }
        maven{ url 'http://maven.aliyun.com/nexus/content/groups/public'}
    }

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

allprojects {
    repositories {
        maven{ url 'https://maven.aliyun.com/repository/google' }
        maven{ url 'https://maven.aliyun.com/repository/jcenter' }
        maven{ url 'http://maven.aliyun.com/nexus/content/groups/public'}
    }
}

你可能感兴趣的:(Flutter-window配置)