Also update Android tools/platform-tools.
The built-in tools are not aware of the v25 SDK and can't install it.
language: android
android:
components:
+ # Workaround to be able to install v25 SDK and build tools.
+ # See https://github.com/travis-ci/travis-ci/issues/6040
+ - tools # to update the repository XML files
+ - tools # to update the SDK tools themselves
+
+ - platform-tools
- build-tools-25.0.2
- android-25
