【问题标题】:Visual studio core error unable to locate Android Studio executable in macosVisual Studio 核心错误无法在 macOS 中找到 Android Studio 可执行文件
【发布时间】:2021-09-25 00:05:06
【问题描述】:
I using flutter doctor -v 

[✓] Xcode - 为 iOS 和 macOS 开发 • Xcode 位于 /Applications/Xcode.app/Contents/Developer • Xcode 12.5.1,内部版本 12E507 • CocoaPods 版本 1.10.1

[✓] Chrome - 为网络开发 • Chrome 位于 /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio(4.2版) • Android Studio 位于 /Applications/Android Studio.app/Contents • Flutter 插件可以从以下位置安装: ??? https://plugins.jetbrains.com/plugin/9212-flutter • Dart 插件可以从以下位置安装: ??? https://plugins.jetbrains.com/plugin/6351-dart • Java 版 OpenJDK 运行时环境(内部版本 11.0.8+10-b944.6916264)

[✓] 已连接设备(3 个可用) • sdk gphone x86 arm(移动) • emulator-5554 • android-x86 • Android 11 (API 30)(模拟器) • macOS(桌面) • macos • darwin-x64 • macOS 11.4 20F71 darwin-x64 • Chrome(网络) • chrome • web-javascript • Google Chrome 88.0.4324.192

• 未发现任何问题!

flutter config --machine

{ "android-studio-dir": "/Applications/Android Studio.app",
“启用-macos-desktop”:是的,“android-sdk”: "/Users/macbook/Library/Android/sdk" }

当我选择在 android studio 中打开时 -> 在 macos 中显示错误:“无法找到 Android Studio 可执行文件” 有人可以帮我从这里出去吗?谢谢

【问题讨论】:

    标签: android flutter visual-studio-code


    【解决方案1】:

    尝试运行:

    flutter config --android-studio-dir "/Applications/Android Studio.app/Contents"
    

    这似乎是我的格式(并且似乎是what the extension expects),它对我有用。

    【讨论】:

    • 谢谢@Danny Tuppeny 我试过了,它奏效了。我想喜欢,但至少有 15 名声望。谢谢
    • 我认为您应该能够在没有代表的情况下将其标记为正确答案。无论如何,很高兴它被分类了! :-)
    猜你喜欢
    • 1970-01-01
    • 2014-10-03
    • 2019-07-17
    • 1970-01-01
    • 1970-01-01
    • 2021-03-07
    • 2021-08-08
    • 2019-12-04
    • 1970-01-01
    相关资源
    最近更新 更多