flutter Exception: Gradle task assembleDebug failed with exit code 1

flutter运行到安卓报错如下:

解决方案:

在配置代理或国内镜像都没能解决的话,可尝试删除 ~/.gradle

rm -rf ~/.gradle/
flutter clean
flutter pub get
flutter run

你可能感兴趣的:(flutter,android,android,studio)