当我运行扑医时,它显示以下错误:
Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[?] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17134.112], locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 27.0.3)
X Flutter requires Android SDK 28 and the Android BuildTools 28.0.3
To update using sdkmanager, run:
D:/Tools/sdk\tools\bin\sdkmanager "platforms;android-28" "build-tools;28.0.3"
or visit https://flutter.io/setup/#android-setup for detailed instructions.
X Android license status unknown.
[?] Android Studio (version 3.3)
[!] IntelliJ IDEA Ultimate Edition (version 2017.1)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[?] VS Code (version 1.26.1)
[?] Connected device (1 available)
你需要下载
1- Android SDK版本28
Android Studio - > SDK Manager - > SDK平台选项卡 - >选择Android 9.0 Pie并按确定下载
2- Android BuildTools版本28.0.3
Android Studio - > SDK Manager - > SDK工具选项卡 - >选择显示包详细信息 - >在Android SDK Build-Tools部分下选择28.0.3并按确定下载
3-然后创建并运行Project
4-如果问题仍然存在,请添加
C:\ Program Files \ Git \ bin \ git.exe; C:\ Program Files \ Git \ cmd; C:\ Windows \ System32到你的PATH变量
不要为git创建新的变量,而是在我一个接一个地将它们分开时添加它们;