Problem occurs when you are finished with the environment, when you build the APK
>ionic Build Android
Problem Description:
BUILD failedtotal time:9 mins 18.732 secsfailure:build failed with a exception.* what went wrong:a problem occurred con Figuring root project ' Android ' .> you has not accepted the license agreements of the following SDK components:[android SDK Platform 25]. Before building your project, you need to accept the license agreements and complete the installation of the missing compo Nents using the Android Studio SDK manager.alternatively, to learn how to transfer the license agreements from one Worksta tion 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:FAILURE:Build failed with a exception.* what went wrong:a probl Em occurred configuring root project ' Android ' .> you had not accepted the license agreements of the following SDK comp Onents:[android SDK Platform 25]. Before building your ProjECT, you need to accept the license agreements and complete the installation of the missing components using the Android S Tudio SDK manager.alternatively, to learn-transfer the license agreements from one workstation to another, go to HT tp://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.
Analysis: According to the meaning of the problem is not acquired to license
Solution:
Under CMD Command window, CD first to ***\android\android-sdk\tools\bin
Run
Sdkmanager--update
If not,
Sdkmanager--licenses
will have
Accept? (y/n): Y
Just accept Y-carriage, okay?
And then you pack it up and you're OK ^.^
You are not accepted the license agreements of the following SDK components