flutter项目运行卡在Running Gradle task 'assembleDebug'?
也修改了项目build.gradle和flutter.gradle文件,替换为阿里地址,还是卡在那,没用呀?
flutter/packages/flutter_tools/gradle/resolve_dependencies.gradle
改为 url "http://download.flutter.io"
flutter/packages/flutter_tools/gradle/flutter.gradle
大致是自己去gradle网站https://services.gradle.org/distributions/上下载你要的版本,然后配置当前工程使用本地路径的gradle。
修改gradle_wrapper.properties的distributionUrl=https\://http://services.gradle.org/distributions/gradle-5.6.2-all.zip
为
distributionUrl=file\:/Users/xxx/.gradle/wrapper/dists/gradle-5.6.2-all/local/gradle-5.6.2-bin.zip
已经靠这个办法解决,可以run了^_^