Flutter:检查平台工具中的许可证

Flutter: Checking the licenses in platform-tools

在运行 flutter project 时,出现警告:

Checking the license for package SDK Patch Applier v4 in E:\platform-tools_r31.0.3-windows\licenses
Warning: License for package SDK Patch Applier v4 not accepted.
Checking the license for package Android Emulator in E:\platform-tools_r31.0.3-windows\licenses
Warning: License for package Android Emulator not accepted.
Checking the license for package Android SDK Tools in E:\platform-tools_r31.0.3-windows\licenses
Warning: License for package Android SDK Tools not accepted.
Checking the license for package Android SDK Build-Tools 29.0.2 in E:\platform-tools_r31.0.3-windows\licenses
Warning: License for package Android SDK Build-Tools 29.0.2 not accepted.
Checking the license for package Android SDK Platform 31 in E:\platform-tools_r31.0.3-windows\licenses
Warning: License for package Android SDK Platform 31 not accepted.

但是我发现没有E:\platform-tools_r31.0.3-windows\licenses的包,和图片一样enter image description here

那么可能是什么问题呢?以及如何解决?感谢您的帮助。

Android你的flutter项目的SDK路径没有定义..

定义为

flutter config --android-sdk 'Your SDK Path'