Travis CI build doesn't work with Android Constraint Layout

前端 未结 6 1400
梦谈多话
梦谈多话 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:41

    Workaround to accept the license is no longer required as explained here if you directly accept it:

      - echo yes | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2"
      - echo yes | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2"
    

    Full working sample using constraint-layout codelab repository for Android API level 22 to 25.

提交回复
热议问题