gpt4 book ai didi

android - visual studio 核心错误无法在 macos 中找到 Android Studio 可执行文件

转载 作者:行者123 更新时间:2023-12-05 09:32:04 25 4
gpt4 key购买 nike

I using flutter doctor -v 

[✓] Xcode - develop for iOS and macOS• Xcode at /Applications/Xcode.app/Contents/Developer• Xcode 12.5.1, Build version 12E507• CocoaPods version 1.10.1

[✓] Chrome - develop for the web• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)• Android Studio at /Applications/Android Studio.app/Contents• Flutter plugin can be installed from:🔨 https://plugins.jetbrains.com/plugin/9212-flutter• Dart plugin can be installed from:🔨 https://plugins.jetbrains.com/plugin/6351-dart• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] Connected device (3 available)• sdk gphone x86 arm (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)• macOS (desktop) • macos • darwin-x64 • macOS 11.4 20F71 darwin-x64• Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.192

• No issues found!

flutter config --machine

{ "android-studio-dir": "/Applications/Android Studio.app",
"enable-macos-desktop": true, "android-sdk":"/Users/macbook/Library/Android/sdk" }

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

最佳答案

尝试运行:

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

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

关于android - visual studio 核心错误无法在 macos 中找到 Android Studio 可执行文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68404686/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com