尝试了我所发现的一切(github问题,SO问题)。还尝试从Android Studio重新安装Android SDK(29)。
1.Flutter刮刀
C:\Users\Zheny>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18363.693], locale ru-RU)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
X Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.
[√] Android Studio (version 3.6)
[!] VS Code (version 1.42.1)
X Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[!] Connected device
! No devices available
! Doctor found issues in 3 categories.
- flutter doctor --android-licenses
Android sdkmanager tool not found
(C:\Users\Zheny\AppData\Local\Android\Sdk\tools\bin\sdkmanager).
Try re-installing or updating your Android SDK,
visit https://flutter.dev/setup/#android-setup for detailed instructions.
1.扑动医生-v
C:\Users\Zheny>flutter doctor -v
[√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18363.693], locale ru-RU)
• Flutter version 1.12.13+hotfix.8 at C:\Flutter SDK\flutter
• Framework revision 0b8abb4724 (2 weeks ago), 2020-02-11 11:44:36 -0800
• Engine revision e1e6ced81d
• Dart version 2.7.0
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at C:\Users\Zheny\AppData\Local\Android\Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.3
• ANDROID_HOME = C:\Users\Zheny\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
X Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.
[√] Android Studio (version 3.6)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 44.0.2
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[!] VS Code (version 1.42.1)
• VS Code at C:\Users\Zheny\AppData\Local\Programs\Microsoft VS Code
X Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[!] Connected device
! No devices available
! Doctor found issues in 3 categories.
1.我的路径和文件夹的屏幕x1c 0d1xx 1c 1d 1xx 1c 2d 1x
我怎样才能解决这个问题?
6条答案
按热度按时间xzv2uavs1#
按照以下步骤操作
来源:https://flutter.dev/docs/get-started/install/macos#install-android-studio
ddarikpa2#
下载https://developer.android.com/studio#command-tools并在
C:\Users\Zheny\AppData\Local\Android\SDK文件夹
然后像这样设置路径
C:\Users\Zheny\AppData\Local\Android\Sdk\tools\bin
重新启动power-shell或命令提示符并执行flutter doctor --android-licenses
dzjeubhm3#
请执行以下步骤:
1.打开SDK管理器
1.转到SDK工具
1.从SDK管理器中删除“Android SDK工具”
1.首先取消选择“隐藏过时的软件包”,然后选择“Android SDK工具(过时)",安装它.
1.运行flutter doctor --android-licenses并在提示符中选择y。
运行扑医生和一切都会好起来!!!!
r6l8ljro4#
根据您的安装路径,您的系统变量应具有:C:\Users\AppData\Local\Android\sdk JAVA_HOME C:\Program Files\Android\Android Studio\jre
你的路径应该有:C:\Program Files\Android\Android Studio\jre\bin C:\src\flutter\bin
然后从命令提示符运行“flutter doctor”(不带引号)。
如果出现同样的错误,请打开Android Studio,进入设置并导航到“外观和行为>系统设置> Android SDK”,然后在窗口顶部和Android SDK位置右侧,单击编辑,并从打开的窗口中更新您当前的SDK管理器并安装最新的API(如果尚未安装);在此窗口中更新或安装所有内容后,关闭Android Studio并关闭命令提示符。
打开一个新的命令提示符并再次运行“flutter doctor”(不带引号)。按照软件说明接受所有Android许可证。
hof1towb5#
按照以下步骤操作
安装这个。
tzxcd3kk6#
在flutter_console中尝试
然后
我的问题就这样解决了