CircleCI Android constraintLayout doesn't work

前端 未结 4 1819
攒了一身酷
攒了一身酷 2021-02-15 00:25

I am now using the CircleCI for my project. Also I am implementing the new constraintLayout in my project. Now I am stuck with the CircleCI bui

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-15 00:59

    This worked for me, and also checks for cached versions first:

    dependencies:
      pre:
        # Android SDK Platform 24
        - if [ ! -d "/usr/local/android-sdk-linux/platforms/android-24" ]; then echo y | android update sdk --no-ui --all --filter "android-24"; fi
        # Android SDK Build-tools, revision 24.0.1
        - if [ ! -d "/usr/local/android-sdk-linux/build-tools/24.0.1" ]; then echo y | android update sdk --no-ui --all --filter "build-tools-24.0.1"; fi
        # Android Support Repository, revision 35 / Local Maven repository for Support Libraries
        - if [ ! -d "/usr/local/android-sdk-linux/extras/android/m2repository/com/android/support/design/24.1.0" ]; then echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"; fi
    
    
      cache_directories:
        - /usr/local/android-sdk-linux/platforms/android-24
        - /usr/local/android-sdk-linux/build-tools/24.0.1
        - /usr/local/android-sdk-linux/extras/android/m2repository
    

    Taken from this post by CircleCI employee drazisil

提交回复
热议问题