Error with ionic cordova build android

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)


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.

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