Flutter 安装报错
image.png
按照提示输入 flutter doctor --android-licenses
image.png
报错 Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
解决办法:
- 打开Android Studio - SDK Manager - SDK Tools
- 勾选Android SDK Command-line Tools(latest)
- 点击“ok”
image.png
再次输入 flutter doctor --android-licenses
一路y
问题解决