如果遇到上述問(wèn)題,不管是在IDEA,還是在Android Studio,都是卡死在:
Downloading ios-profile tools.../Downloading ios-release tools...
這就比較納悶,于是就在Flutter文檔中,看到以下命令,并執(zhí)行:
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
可是還是無(wú)解。。。搭梯子也無(wú)解。。。
于是,開(kāi)始命令行擼起來(lái):
創(chuàng)建項(xiàng)目:
flutter create -t module flutter_module

進(jìn)入項(xiàng)目:
cd flutter_module
運(yùn)行項(xiàng)目:
flutter run

出現(xiàn)上圖,運(yùn)行成功了。。。
部分說(shuō)明:可以直接在命令行輸入,并不在命令行顯示,但是實(shí)際在無(wú)感執(zhí)行
r Hot reload. ??????【熱更新】
R Hot restart.【重載】
h Repeat this help message.【幫助】
d Detach (terminate "flutter run" but leave application running).
c Clear the screen【清除】
q Quit (terminate the application on the device).【退出】
至此,再在IDEA重新打開(kāi)flutter_module項(xiàng)目,IDEA可以Run起來(lái)flutter項(xiàng)目了~~
如有錯(cuò)誤,歡迎指出,一起學(xué)習(xí)~