-
字符号不显示
- You need to set uses-material-design: true in pubspec.yaml for the icons to be included in the app. stackoverflow
-
执行更新库:packages get 命令,会卡住,一直lock状态
- 找到自己的flutter的路径
- 删除cache中的lockfile
rm /Users/xxx/development/flutter/bin/cache/lockfile
Waiting for another flutter command to release the startup lock...
-
打开安卓模拟器提示
Broken AVD system path. Check your ANDROID_SDK_ROOT value
原因是
ANDROID_HOME
和ANDROID_SDK_ROOT
配置的不对
在Android studio找到:File/Other Settings/Default Project Structure...
里面会有 Android sdk location, 此路径才是ANDROID_HOME
的路径,将ANDROID_HOME
和ANDROID_SDK_ROOT
更新为此目录就可以了
4. flutter使用墙内加速
原文链接 :https://flutter.dev/community/china
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn