IDEA 創(chuàng)建flutter項(xiàng)目,卡死Downloading ios-profile tools.../Downloading ios-release tools...

如果遇到上述問(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


項(xiàng)目創(chuàng)建成功

進(jìn)入項(xiàng)目:

cd flutter_module

運(yùn)行項(xiàng)目:

flutter run


運(yùn)行成功了

出現(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í)~

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容