I am trying to make Travis build my Android project. It fails when it tries to download the library for ConstraintLayout
. Do you know what I have to do to make
There is an open issue https://code.google.com/p/android/issues/detail?id=212128
In short, com.android.support.constraint:constraint-layout:1.0.0-alpha1
is bundled into Google Repository but 1.0.0-alpha2
and later version is only available from gradle plugin which expects a license text being placed in $HOME/.android/license/
(if not found, try $ANDROID_HOME/licenses
).
You can copy the license text file from your local machine (after agreed to the license from SDK Manager provided by Android Studio 2.2) to the CI server as mentioned in the issue. Or downgrade to 1.0.0-alpha1
to fix the problem.