Travis CI build doesn't work with Android Constraint Layout

前端 未结 6 1370
梦谈多话
梦谈多话 2020-12-25 13:07

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

6条回答
  •  时光说笑
    2020-12-25 13:46

    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.

提交回复
热议问题