【发布时间】:2019-02-11 17:40:51
【问题描述】:
在运行颤振医生时,我得到以下依赖项:
Android toolchain - develop for Android devices (Android SDK 28.0.3)
Could not determine java version
Android Studio (not installed)
但是我已经在Android Studio上安装和开发应用了。那为什么flutter找不到这两个呢?
它也抱怨 jre 版本。但内部 Android Studio 使用已经安装的 jre。
flutter doctor -v 给出以下输出:
[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.13.6 17G65, locale en-IN)
• Flutter version 1.0.0 at /Users/<myusername>/Downloads/development/flutter
• Framework revision 5391447fae (3 months ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /Users/<myusername>/Library/Android/sdk
• Android NDK at /Users/<myusername>/Library/Android/sdk/ndk-bundle
• Platform android-28, build-tools 28.0.3
• Java binary at: /usr/bin/java
✗ Could not determine java version
[!] iOS toolchain - develop for iOS devices
✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
• ios-deploy 1.9.4
• CocoaPods version 1.6.0
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.io/setup/#android-setup for detailed instructions).
[!] Connected device
! No devices available
【问题讨论】:
-
您安装了哪个 Android Studio 版本?
-
我的android studio版本是3.2.1
-
它也在抱怨 jre 版本。你能发布完整的
flutter doctor -v输出吗? -
你在Android Studio上安装过flutter插件了吗?
-
@SiloéBezerraBispo 不,我还没有安装。
标签: android flutter flutter-dependencies