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:
You will run into an issue like this whenever your Android Studio's packages are outdated, as building will occur in the latest stable releases. To fix, do the following:
Android Studio > Preferences > Appearance & Behavior > System Settings > Android SDK Tick the latest Android versions (or what you need), click Apply. It's at this point where Android will ask you to agree to its license(s) and the updated version(s) will be installed.
Now you can Ionic / Cordova / PhoneGap build / run.