ConstraintLayout 1.0.2



Hi guys,

Just now I added the new ConstraintLayout v1.0.2 dependency to my project. And I’m having problems with the compilation.

Here is the log:

A problem occurred configuring project ‘:app’.
> You have not accepted the license agreements of the following SDK components:
_ [ConstraintLayout for Android 1.0.2, Solver for ConstraintLayout 1.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

Someone knows how I can solve this problem?

This is my current configuration file,

Thanks in advance.


I have a step to copy my license from my AS ‘licenses’ directory to the ${SDK_HOME}/licenses directory prior to doing anything with gradle. The script looks a bit like this;

mkdir -p /usr/local/android-sdk/licenses
cp .dockerci/android-sdk-license /usr/local/android-sdk/licenses/

where .dockerci is just a folder in my workspace. The script is called and is invoked as the first build step.

TL;DR - your license ID has change as a result of you “accepting ts&cs” when updating your SDK via Android Studio and the build agent as described in the helpfully linked article in the error message (re: export-licenses.html) needs to have that license before it can continue.


Thanks @BrantApps, So, I still having the same problem. :’(


I have exactly the same problem!
Any suggestions how to fix it?

  • echo y | android update sdk --no-ui --all --filter “tool,extra-android-m2repository,extra-android-support,extra-google-google_play_services,extra-google-m2repository”
  • echo y | $ANDROID_HOME/tools/bin/sdkmanager “extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2”

sdkmanager is the new way to accept licenses, android is deprecated. problem is circle CI doesn’t have it added to the path by default because it may not exist yet. you have to upgrade your tools to 25.2.3 first and directly refer to sdkmanager


Thanks @ZakTaccardi, Works!!!