Tuesday, August 31, 2021

cordova build : FAILURE: Build failed with an exception.

  Run "cordova build"



Failed to install the following Android SDK packages as some licences have not been accepted.

 platforms;android-29 Android SDK Platform 29



Go to SDK manager


 uncheck the version 31 and check the 29





Failed to find 'android' command de path to valid SDK directory. Cordova

 Failed to find 'android' command de path to valid SDK directory.

Add ANDROID_HOME to  System variables

C:\Users\{username}\AppData\Local\Android


add to  path


%ANDROID_HOME%\tools\;%ANDROID_HOME%\platform-tools\;