Android studio flutter配置

第一步 下载flutter SDK https://docs.flutter.dev/get-started/install/macos
第二步:配置flutter SDK系统环境变量 (FLUTTER_PATH D:\flutter\bin)
https://jingyan.baidu.com/article/7c6fb428f25f8a80642c9021.html
第三步环境变量配置
设置 用户变量
FLUTTER_STORAGE_BASE_URL:https://storage.flutter-io.cn
PUB_HOSTED_URL:https://pub.flutter-io.cn
电脑重启
第四步:
命令执行 flutter doctor

  1. \flutter\bin\cache\dart-sdk\bin\dart.exe"' 不是内部或外部命令
    删除flutter\bin\cache 文件夹,重新执行flutter docator 即可
    https://www.jianshu.com/p/25aacf282629

执行flutter doctor --android-licenses报如下错
Android sdkmanager not found. Update to the latest Android SDK and ensure th
解决办法:https://blog.csdn.net/qq_41885673/article/details/123698020
settings下载 Android sdk command-line Tools

你可能感兴趣的:(Android studio flutter配置)