问题:
接着上一个问题,如果是继续有问题,你讲看到这篇文章,新的问题又出现啦。
(如:Command: /xx/xx/develop/android/flutter_app/android/gradlew app:properties. Finished with error: Please review your Gradle project setup in the android/ folder.)
原因:jcenter google库无法访问到导致的问题,虽然你疑惑你有qiang,为啥还是无法访问,全局代理还是被屏掉了。换种思路,我们
换成使用阿里的镜像。
解决:
在app下的gradle文件中,修改以下重新编译,解决代理问题
buildscript {
repositories {
//google()
//jcenter()
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' }
}
}
allprojects {
repositories {
//google()
//jcenter()
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' }
}
}