flutter 学习笔记
1、不依赖Android Studio安装flutter(macos)
https://zhuanlan.zhihu.com/p/...
2、在 .bash_profile里设置变量
参考
https://flutterchina.club/set...
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
3、Flutter 命令每次都不生效,都需要重新配置环境变量的解决方法
https://blog.csdn.net/weixin_...
4、在vscode中添加
ADB Interface for VSCode
5、终端中找不到adb命令,在 .bash_profile里设置变量
https://www.jianshu.com/p/196...
https://www.jianshu.com/p/80d...
export PATH=${PATH}:~/Library/Android/sdk/platform-tools
之后F5报错
6、修改build.gradle,注释掉jcenter(),google()。使用阿里的镜像。原因是jcenter google库无法访问到导致的问题。
https://blog.csdn.net/chichen...
7、之后 根据andriod-sdk的路径去更新 sdkmanager 和更新 licenses
https://blog.csdn.net/weixin_...
./sdkmanager --update
./sdkmanager --licenses
8、解决io.flutter报错的问题
https://www.jianshu.com/p/946...
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。