gpt4 book ai didi

android-studio - Flutter 医生报告看到了两个 Android Studio 安装

转载 作者:IT老高 更新时间:2023-10-28 12:45:05 26 4
gpt4 key购买 nike

为什么 Flutter 在同一位置报告 Android Studio 的有效和无效安装?遇到的错误如下:

Sat Dec  1 10:52:34 AEDT 2018
flutter_app $ flutter doctor -v
[✓] Flutter (Channel beta, v0.11.12, on Linux, locale en_AU.UTF-8)
• Flutter version 0.11.12 at /home/jedaa/bin/flutter
• Framework revision 06ec8d3b41 (2 days ago), 2018-11-28 15:56:58 -0800
• Engine revision 72c7a75672
• 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 /home/jedaa/bin/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /home/jedaa/bin/Android/sdk
• Java binary at: /home/jedaa/bin/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.

[✓] Android Studio (version 3.2)
• Android Studio at /home/jedaa/bin/android-studio
• Flutter plugin version 31.1.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] Android Studio
• Android Studio at /home/jedaa/bin/android-studio/
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• android-studio-dir = /home/jedaa/bin/android-studio/
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] IntelliJ IDEA Community Edition (version 2018.3)
• IntelliJ at /opt/idea
• Flutter plugin version 31.1.4
• Dart plugin version 183.4733

[✓] VS Code (version 1.29.1)
• VS Code at /usr/share/code
• Flutter extension version 2.21.0

[!] Connected device
! No devices available

当我加载 AS 并运行默认应用程序时......我在事件日志中得到了这个:

10:51 AM    Unable to list devices: Unable to discover Android devices. 
Please run "flutter doctor" to diagnose potential issues

11:13 AM Emulator: Couldn't statvfs() path: No such file or directory

11:13 AM Emulator: qemu-system-x86_64: warning: host doesn't support
requested feature: CPUID.80000001H:ECX.abm [bit 5]

Emulators are available

请您帮忙解决这个问题,谢谢。

最佳答案

我建议清除 android-studio-dir 和 android-sdk 设置,让 Flutter 自动检测它们的路径:

$ flutter config --android-studio-dir=""
Removing "android-studio-dir" value.

$ flutter config --android-sdk=""
Removing "android-sdk" value.

关于android-studio - Flutter 医生报告看到了两个 Android Studio 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53566547/

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