I am, working on Ionic3 project. When build app using cordova build android
Its shows this error
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 Build-Tools 26.0.1, 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 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
I have followed stackoverflow answers related this types of errors. But still its shows this error
I have followed following procedure to overcome error.
- Successfully added
ANDROID_HOME
directory Accepted all licenses using following command
./sdkmanager --licenses
At ( $ANDROID_HOME/Android/Sdk/tools/bin ) directory
What is the main issue for occurring this error ? How to overcome this issue ? Is the any other way to solve this issue ?