flutter 版本 1.18.1-pre.1 平台 mac pro

在 Android Studio 运行 Debug 提示,卡在下面环节后报错。

Running Gradle task 'assembleDebug'...    
This is taking an unexpectedly long time.

解决方法

echo $PATH 找出 flutter 的地址
我配置设置的是/usr/local/bin:/usr/local/bin/flutter/bin

编辑 /usr/local/bin/flutter/packages/flutter_tools/gradle/flutter.gradle

// 这里注释掉
// private static final String MAVEN_REPO      = "https://storage.googleapis.com/download.flutter.io";

// 添加保存
 private static final String MAVEN_REPO      = "http://download.flutter.io";

Could not find io.flutter:flutter_embedding_debug