Cordova run android报错:You have not accepted the license agreements of the following SDK com

接连安装完 Android Studio、Gradle 、 Android SDK 之后,运行cordova run android报错:

You have not accepted the license agreements of the following SDK components: [Android SDK Platform 27]. Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.

解决方法: 进入到ANDROID_HOME\tools\bin目录下,cmd运行 ./sdkmanager.bat --licenses ,之后会弹出很多选项,均输入 y 确认即可

欢迎关注、点赞

猜你喜欢

转载自blog.csdn.net/qq_33576343/article/details/84203420