问题描述
使用 SNAP 在 Ubuntu 20.04.1 上安装 Android Studio 后,Flutter 似乎无法识别它的存在:
Flutter doctor --verbose
[✓] Flutter (Channel dev,1.26.0-1.0.pre,on Linux,locale en_GB.UTF-8)
• Flutter version 1.26.0-1.0.pre at /home/daniel/snap/Flutter/common/Flutter
• Framework revision 63062a6443 (2 weeks ago),2020-12-13 23:19:13 +0800
• Engine revision 4797b06652
• Dart version 2.12.0 (build 2.12.0-141.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /home/daniel/Android/Sdk
• Platform android-30,build-tools 30.0.2
• Java binary at: /usr/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.04)
• All Android licenses accepted.
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://Flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
[✓] IntelliJ IDEA Community Edition (version 2020.3)
• IntelliJ at /snap/intellij-idea-community/270
• Flutter plugin version 52.1.5
• Dart plugin version 203.6912
[✓] Connected device (1 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
! Doctor found issues in 1 category.
虽然这对我的工作没有任何影响,因为 Android Studio 和 Flutter 都可以完美使用,但这确实有点奇怪,尤其是我在 Android Studio 自己的控制台上运行时得到了这个结果......
>所以,即使它在技术方面并不真正困扰我,我确实认为如果我能让 Flutter 知道 Android Studio 确实已安装并正在运行,那么系统会在运行时报告零问题颤振医生--详细...
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)