I using flutter doctor -v
为iOS和macOS·Xcode开发/✓/xcode.app/Content/Developer·Xcode 12.5.1,构建12E507·CocoaPods版本1.10.1 ✓Chrome -为网页开发. Chrome /Applications/GoogleChrome.app/Content/MacOS/Google Android (Version4.2)·Android at /Applications/AndroidStudio.app/Content.fltter插件可以从以下位置安装:https://plugins.jetbrains.com/plugin/9212-flutter·Dart插件可以从:https://plugins.jetbrains.com/plugin/6351-dart·Java版本OpenJDK运行时环境安装(build 11.0.8+10-b944.6916264) x86 arm (移动)模拟器-5554·android-x86·Android11 (API 30) (模拟器)·macOS (桌面)·macos·达尔文-x64·macOS 11.420F71达尔文-x64·Chrome (web)·Chrome·web-javascript·Google 88.0.4324.192 没有发现任何问题!
flutter config --machine
{“Android dir”:"/Applications/Android Studio.app", “启用-macos-桌面”:true,“Android”:"/Users/macbook/Library/Android/sdk“}
当我选择时,->显示错误:“无法定位macos中的android可执行文件”,有人能在这里帮助我吗?谢谢
发布于 2021-07-17 03:58:58
试着跑:
flutter config --android-studio-dir "/Applications/Android Studio.app/Contents"
这似乎是我的格式(而且似乎是扩展所期望的),而且它对我很有用。
https://stackoverflow.com/questions/68404686
复制相似问题