flutter 开发 设置国内代理

android build.gradle

maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
maven { url 'https://download.flutter.io'}

gradle wrapper distributionUrl

distributionUrl=https\://emas-devops-cdn.aliyuncs.com/distributions/gradle-7.5-all.zip

环境变量

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