Error with ionic cordova build android


#1

I m beginner in Ionic 3. Right now I’m trying to do ionic cordova build android , but I get Error:You have not accepted the license agreements of the following SDK components (please see the photo attached)


.


#2

If you hadn’t posted screenshots but the text directly I could quote it where it says what you should do. Now I can only tell you to read the error message again and do what it says.


#3

I ran into this the other day and opened up Android Studio app (downloadable at https://developer.android.com/studio/index.html), went to Tools / SDK Manager, installed Android SDK Platform 26 Tools and accepted their terms/licensing. That seemed to fix the issue. Good luck!