flutter安装学习记录
1.下载flutter 目前安装在/Users/xiaofeiniao/
1.进入安装目录 目前安装在 账户目录下
cd /Users/xiaofeiniao
2.下载flutter资源
git clone -b stable https://github.com/flutter/flutter.git
2.配置环境变量
1.编辑 .profile
cd /Users/xiaofeiniao/
vim .profile
2.添加flutter的环境配置
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export PATH=/Users/xiaofeiniao/flutter/bin:$PATH
3.检测flutter的安装
1.查看安装
flutter doctor
2.查看详细的安装情况
flutter doctor -v
遇见的问题:
问题1:✗ Flutter requires Android SDK 28 and the Android BuildTools 28.0.3
To update using sdkmanager, run:
"/Users/xiaofeiniao/Library/Android/sdk/tools/bin/sdkmanager" "platforms;android-28"
"build-tools;28.0.3"
or visit https://flutter.dev/setup/#android-setup for detailed instructions.
解决问题的方案: 按照指示,执行 "/Users/xiaofeiniao/Library/Android/sdk/tools/bin/sdkmanager" "platforms;android-28"
"build-tools;28.0.3"
问题2:Android licenses not accept ,to resolve this,run flutter doctor --android-licenses
解决方案:
遇见选择Y /N 统统选择 Y
问题3: Android Studio (version 3.0)
Flutter plugin not installed;this adds Flutter specific functionality
解决方案: 在Android Studio 中安装flutter插件
问题4: VS Code (Version 1.39.2)
Flutter extension not installled
解决方案: 在VS Code编辑工具中,安装flutter 插件
学习博客:
https://www.jianshu.com/p/d3f74494949f
https://www.jianshu.com/p/d8ba5ac131c9
https://www.jianshu.com/p/d8ba5ac131c9
https://app.yinxiang.com/fx/f17aa445-29cb-496f-a890-7e9ca4f481df
上一篇: Flutter新手引导蒙版(浮层)
下一篇: Flutter友盟插件开发使用
推荐阅读
-
nginx安装及依赖关系的配置记录 dpkg 依赖关系 oracle任务依赖关系 uml依赖关系的实
-
Yii2的相关学习记录,自定义gii模板和引用vendor中的js、css(四) - 漫游云巅
-
Cocos2d游戏开发学习记录——1.Surface、SurfaceView、SurfaceHolder实现简单的游戏demo
-
Flutter构建自定义Widgets的全过程记录
-
js和jquery中循环的退出和继续学习记录_javascript技巧
-
Java学习记录:纠错Junit单元测试遇到的initializationerror:method initializationerror not found
-
C++学习摘要记录
-
Fedora 13 MySQL安装记录
-
python字符串的学习记录
-
6-22日学习记录