I coded an ionic 2 app and I have tried to run "ionic run android" to build the apk. I keep getting and error. I have tried everything. I came across this question below but as a newbie I truly can for the life of me figure out what I need to do.
Automatically accept all SDK licences
please help.
ERROR LOOKS LIKE THIS
BUILD FAILED
Total time: 1.903 secs
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring root project 'android'.
You have not accepted the license agreements of the following SDK components: [Android SDK Platform 24]. 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. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: cmd: Command failed with exit code 1 Error output: