I can not create android-27, tool-27.0.2 with travis.CI

Can someone help me?

Stuck on my part.

https://travis-ci.org/XinyueZ/mvvm-template/jobs/313586340

I can not build (./gradlew test) it.

my yml:

language: android
android:
  components:
    - tools
    - platform-tools
    - build-tools-27.0.2
    - android-27
    - add-on
    - extra
licenses:
    - 'android-sdk-license-.+'
jdk:
    - oraclejdk8
script:
    - ./gradlew :repository:testMockDebugUnitTest :repository:testProdDebugUnitTest :repository:testProdReleaseUnitTest
before_cache:
    - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
  directories:
    - $HOME/.m2
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/


    buildToolsVersion = '27.0.2'

I also tried 27.0.1, it also failed.

I had one or three times success, in just 2 hours, something went wrong.

same yml, no change.

Look here

+4
source share
1 answer

It seems that Google has downloaded the new version of the package android-27, and the checksum is now different, and the download failed. At this point, you need to install it yourself using the CLI sdkmanager. Here is what you need to add to your .travis.yml file:

before_install:
- yes | sdkmanager "platforms;android-27"
+17
source

Source: https://habr.com/ru/post/1690452/


All Articles