I\'m trying to run the command ionic build android --release to build the apk but i am getting this error
Total time: 1.767 secs Error:
I had same situation and all of the above suggestion did not work because either my installation and component folder names are different or the files are in different places.
I had old installation of Android Studio in C and new in E. I had uninstalled the old version but Android studio did not clear all files and reset my Env. Variable. So I simply did following
1) Searched for this file: android-sdk-license
2) See if above file is in folder Licenses surrounded by other folders like add-ons, build-tools, emulator etc.
3) Then make sure ANDROID_HOME is pointing to this parent folder of Licenses.