I am trying to configure Travis CI for my existing Android project. I added .travis.yml:
language: android android: components: - build-tools-21.1.2 - android-22 - extra-google-google_play_services
But it always fails in Travis CI with the following error:
FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':evercamPlay'. failed to find target android-22 : /usr/local/android-sdk * Try: Run with
What should I do to get rid of this error?
Update:
After updating the build tools to version 22.0.1, this error disappeared, but a new error appeared:
> Could not find com.android.support:support-v4:22.2.0. ... > Could not find com.google.android.gms:play-services:7.3.0. ...
In my build.gradle file:
dependencies { compile 'com.android.support:support-v4:22.2.0' compile 'com.google.android.gms:play-services:7.3.0' }
Any idea how to fix this?
Thanks!
source share