Nativescript 接受 Android SDK 许可证

Nativescript Accept Android SDK License

目前我正在尝试学习 NativeScript。

如何,运行 命令:

tns run android

给我以下错误信息:

You have not accepted the license agreements of the following SDK components: [Android SDK Build-Tools 25, Android SDK Platform 25]

我已经尝试完全卸载 Android SDK 构建工具和 SDK 平台,然后使用 SDK 管理器重新安装。一直提示这个错误。

谁能告诉我如何摆脱它,或者如何正确接受许可证?

我正在使用 Windows 10.

我有同样的问题...但是我通过执行以下操作解决了它。

android update sdk --no-ui --filter build-tools-25.0.0,android-25,extra-android-m2repository

希望能帮到你