【发布时间】:2021-09-26 15:36:31
【问题描述】:
我该如何解决这个问题?我已经按照建议在我的 M1 Mac 上下载了 Android Studio Preview
运行flutter doctor后出错
The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.
[✓] Flutter (Channel beta, 2.3.0-24.1.pre, on macOS 11.4 20F71 darwin-arm,
locale fr-FR)
[✗] Android toolchain - develop for Android devices
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[!] Android Studio
✗ Unable to find bundled Java version.
[✓] VS Code (version 1.58.2)
[✓] Connected device (2 available)
为什么还是不行?
【问题讨论】:
标签: java flutter android-studio android-emulator apple-m1