Travis CI build doesn't work with Android Constraint Layout

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

    I have the same issue with com.android.support.constraint:constraint-layout:1.0.0-alpha9. In my case I directly tried to create the license file in Travis this way:

    before_install:
      - mkdir "$ANDROID_SDK/licenses" || true
      - echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_SDK/licenses/android-sdk-license"
    

    But since I don't have permissions to write on $ANDROID_SDK and there is no support for sudo, I have no idea what to do next.

    The only option I see is to wait until Google includes it in the license or downgrade to alpha1...

提交回复
热议问题