Flutter AndroidStudio 开发环境报错cmdline-tools component is missing

简介: Flutter AndroidStudio 开发环境报错cmdline-tools component is missing

报错信息如下:


[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)


X cmdline-tools component is missing


Run path/to/sdkmanager --install "cmdline-tools;latest"


See https://developer.android.com/studio/command-line for more details.


X Android license status unknown.


Run flutter doctor --android-licenses to accept the SDK licenses.


See Windows install | Flutter for more details.


85d996572bff469ea1d9853f403a34dd.png


解决方法:


设置下SDK tools的路径


使用如下命令设置自己的Android tools的路径


flutter config --android-sdk "D:\Android\Sdk"


结果如下

4b24a691ced845f39b403f011764e6b2.png

相关文章
|
2月前
|
缓存 Dart 开发工具
解决Flutter报错The method ‘File.create‘ has fewer named arguments than those of overridden method
解决Flutter报错The method ‘File.create‘ has fewer named arguments than those of overridden method
45 3
|
15天前
|
Oracle Java 关系型数据库
Mac电脑上安装和配置Flutter开发环境
Mac电脑上安装和配置Flutter开发环境
37 3
|
5月前
|
Dart 前端开发 开发工具
【Flutter前端技术开发专栏】Flutter入门指南:搭建开发环境与第一个应用
【4月更文挑战第30天】本文介绍了Flutter SDK的安装和配置过程,以及如何创建并运行第一个Flutter应用。首先确保安装了Dart SDK和Flutter SDK,支持macOS、Linux和Windows。安装完成后,设置环境变量,然后通过`flutter doctor`验证安装。接着,使用`flutter create`命令创建新项目,进入项目目录并运行`flutter run`启动应用。在`main.dart`中修改代码以自定义应用。Flutter支持热重载和DevTools调试。本文为Flutter初学者提供了快速入门的指导。
78 0
【Flutter前端技术开发专栏】Flutter入门指南:搭建开发环境与第一个应用
|
2月前
|
Java 开发工具 Android开发
解决flutter doctor出现Android license status unknown或cmdline-tools component is missing
解决flutter doctor出现Android license status unknown或cmdline-tools component is missing
57 4
解决flutter doctor出现Android license status unknown或cmdline-tools component is missing
|
2月前
Flutter更改主题颜色报错:type ‘Color‘ is not a subtype of type ‘MaterialColor‘
Flutter更改主题颜色报错:type ‘Color‘ is not a subtype of type ‘MaterialColor‘
32 4
|
2月前
|
开发工具 iOS开发
解决Flutter运行报错Could not run build/ios/iphoneos/Runner.app
解决Flutter运行报错Could not run build/ios/iphoneos/Runner.app
101 2
|
2月前
解决Flutter报错The named parameter |method ‘xxxx‘ isn‘t defined.
解决Flutter报错The named parameter |method ‘xxxx‘ isn‘t defined.
84 3
|
2月前
|
Dart
Flutter使用Scaffold报错。
Flutter使用Scaffold报错。
33 3
|
2月前
|
iOS开发
解决Flutter运行IOS报错:Podfile is out of date
解决Flutter运行IOS报错:Podfile is out of date
45 1
|
2月前
解决Flutter报错boxconstraints has non-normalized height/width constraints
解决Flutter报错boxconstraints has non-normalized height/width constraints
26 0
下一篇
无影云桌面