我正在尝试在我现有的Android Studio中安装Flutter。我曾经将其用于Android项目,但现在我想学习Flutter项目。我按照此video中给出的步骤操作,但现在我将此作为错误(所有SDK文件都安装在D驱动器中)。
我应该把它们移到同一个位置吗?
C:\Users\prasa>flutter doctor
Checking Dart SDK version...
Downloading Dart SDK from Flutter engine ...
Expanding downloaded archive...
Building flutter tool...
Running pub upgrade...
Downloading Material fonts... 3.2s
Downloading Gradle Wrapper... 210ms
Downloading package sky_engine... 1,510ms
Downloading flutter_patched_sdk tools... 9.3s
Downloading flutter_patched_sdk_product tools... 4.6s
Downloading windows-x64 tools... 38.2s
Downloading windows-x64/font-subset tools... 1,767ms
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 10.0.22000.978], locale en-IN)
[X] Android toolchain - develop for Android devices
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.
[√] Chrome - develop for the web
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2021.2)
[!] Android Studio (version 2022.1)
X Unable to find bundled Java version.
[√] Connected device (3 available)
[√] HTTP Host Availability
! Doctor found issues in 3 categories.
C:\Users\prasa>flutter doctor --android-licenses
Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this.
我如何使用相同的android studio为Android(Koltin)和flutter项目?
1条答案
按热度按时间disbfnqx1#
我的解决方案是打开Android Studio并转到SDK管理器,切换到SDK工具选项卡并检查Android SDK命令行工具(最新)。