發(fā)表日期:2018-11 文章編輯:小燈 瀏覽次數(shù):2686
PUB_HOSTED_URLhttps://pub.flutter-io.cn //國內(nèi)用戶需要設(shè)置
FLUTTER_STORAGE_BASE_URLhttps://storage.flutter-io.cn //國內(nèi)用戶需要設(shè)置
ANDROID_HOMEandroid SDK的安卓目錄
PATH添加 C:\flutter\bin以及Android需要的2個tools目錄
vim ~/.bash_profile
輸入:
export PATH=$PATH:~/flutter/bin export PUB_HOSTED_URL=https://pub.flutter-io.cn export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
保存完畢之后運行命令:
source ~/.bash_profile
然后就可以運行flutter命令了:
flutter --version
flutter channel
flutter build apk
關(guān)于flutter 插件在IOS端報錯:'Flutter/Flutter.h not found'的解決
解決方案:
1,卸載cocoapods
$sudo gem uninstall cocoapods【Mac 10.10之前】 $sudo gem uninstall -n/usr/local/bin cocoapods【Mac 10.11之后】
2,重裝cocoapods
$sudo gem install cocoapods
3,進入你項目中的ios目錄設(shè)置pod
$cd 你項目根目錄/ios
4,設(shè)置pod
$pod update
日期:2018-10 瀏覽次數(shù):7551
日期:2018-12 瀏覽次數(shù):4636
日期:2018-07 瀏覽次數(shù):5146
日期:2018-12 瀏覽次數(shù):4425
日期:2018-09 瀏覽次數(shù):5788
日期:2018-12 瀏覽次數(shù):10206
日期:2018-11 瀏覽次數(shù):5119
日期:2018-07 瀏覽次數(shù):4866
日期:2018-05 瀏覽次數(shù):5124
日期:2018-12 瀏覽次數(shù):4596
日期:2018-10 瀏覽次數(shù):5402
日期:2018-12 瀏覽次數(shù):6470
日期:2018-11 瀏覽次數(shù):4724
日期:2018-08 瀏覽次數(shù):4877
日期:2018-11 瀏覽次數(shù):13027
日期:2018-09 瀏覽次數(shù):5890
日期:2018-12 瀏覽次數(shù):5106
日期:2018-10 瀏覽次數(shù):4452
日期:2018-11 瀏覽次數(shù):4806
日期:2018-12 瀏覽次數(shù):6329
日期:2018-06 瀏覽次數(shù):4273
日期:2018-08 瀏覽次數(shù):5718
日期:2018-10 瀏覽次數(shù):4709
日期:2018-12 瀏覽次數(shù):4828
日期:2018-07 瀏覽次數(shù):4638
日期:2018-12 瀏覽次數(shù):4812
日期:2018-06 瀏覽次數(shù):4643
日期:2018-11 瀏覽次數(shù):4628
日期:2018-12 瀏覽次數(shù):4564
日期:2018-12 瀏覽次數(shù):5540
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.