Running "flutter pub get" in flutter_app...一直沒反應
-
-
- window
- Linux
-
Flutter在使用中,添加新的依賴包時,擷取不到包的内容,和androidStudio擷取不到某些倉庫代碼一個道理,需要增加代理網址
window
使用者變量添加
FLUTTER_STORAGE_BASE_URL:https://storage.flutter-io.cn
PUB_HOSTED_URL:https://pub.flutter-io.cn
Linux
指令行中打開base_profile檔案
open ~/.bash_profile
增加代理網址
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
control + s儲存
source ~/.bash_profile重新定位一下
重新開機啟動androidStudio,重新pachage get即可