简体   繁体   English

Android sdk 文件在运行 flutter 博士后未找到

[英]Android sdk file not found after running flutter doctor

The error on cmd says android SDK file not found: C:\Users\Me\AppData\Local\Android\Sdk\build-tools\29.0.3 after running flutter doctor on flutter console. The error on cmd says android SDK file not found: C:\Users\Me\AppData\Local\Android\Sdk\build-tools\29.0.3 after running flutter doctor on flutter console.

Android Studio seems to work fine. Android Studio 似乎工作正常。

my sdk is located at C:\Users\Me\AppData\Local\Android\Sdk\extras我的 sdk 位于 C:\Users\Me\AppData\Local\Android\Sdk\extras

What could be a solution to this?有什么办法可以解决这个问题?

在此处输入图像描述

If Android studio is working fine but your command line is not, the issue is likely your Path variables.如果 Android 工作室工作正常但你的命令行不是,问题可能是你的路径变量。 Check out the "Update Your Path" section of the Windows installation tutorial.查看 Windows 安装教程的“更新您的路径”部分。

It is simple.很简单。 Follow these three steps to solve the issue.请按照以下三个步骤解决问题。

  • Open SDK Manager打开 SDK 管理器
  • Select Android SDK Build-Tools and uninstall it. Select Android SDK Build-Tools 并卸载它。
  • Then reinstall the required SDK Build-Tools version (in your case 29.0.3)然后重新安装所需的 SDK Build-Tools 版本(在您的情况下为 29.0.3)

That's all.就这样。 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM