I setup the enviorment for Travis CI and added the .travis.yml to my Source Folder:
language : android
jdk: oraclejdk7
android:
components:
- build-tools-19.1.0
# The SDK version used to compile the project
- android-19
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-19
before_install:
- chmod +x gradlew
install:
- true
script: ./gradlew assembleDebug
Travis always download the build-tools etc. but it fails on rename the directory. The output is each time the same:
Installing Archives:
Preparing to install archives
Downloading SDK Platform Android 4.4.2, API 19, revision 4
Installing SDK Platform Android 4.4.2, API 19, revision 4
Failed to rename directory /usr/local/android-sdk/platforms/android-19 to /usr/local/android->sdk/temp/PlatformPackage.old01.
Failed to create directory /usr/local/android-sdk/platforms/android-19
Done. Nothing was installed.
I know Travis CI for Android is beta.
Edit:
I probably know the issue. The problem is because of the SDK 19 is already installed, furthermore I only have to install the build-tools.