You have not accepted the license agreements of the following SDK components

Posted on April 26, 2018 by Suresh Kamrushi in Android

While building Android application you may get error for not accepting license agreement like below:

You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 26, Android SDK Build-Tools 26.0.2].
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

You can fix this issue by accepting the agreement as below:
1) Open command line and Navigate to the folder “Android\sdk\tools\bin” and run below command:

sdkmanager --licenses

Your Android SDK folder is where you install it OR else you can go to below folder and execute the same command:


2) Once you run above command it will ask to review licence that are not accepted like below:
3) Press “y” and then enter key to proceed and accept the licenses.[below are 6 licenses in my case that need to be accepted.

1/6: License android-googletv-license:
2/6: License android-sdk-license:
3/6: License android-sdk-preview-license:
4/6: License google-gdk-license:
5/6: License intel-android-extra-license:
6/6: License mips-android-sysimage-license:

4) Once you accept all of them you must be able to build the project.

Hope it will help someone to fix the issue.

Tagged as