1. 程式人生 > >Cordova run android報錯:You have not accepted the license agreements of the following SDK com

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 確認即可

歡迎關注、點贊