I am trying to set up Travis CI for my existing Android project. I've added the .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 --stacktrace option to get the stack trace. Run with --info or debug option to get more log output.
BUILD FAILED
Total time: 16.801 secs
The command "./gradlew build connectedCheck" exited with 1.
Done. Your build exited with 1.
What should I do to get rid of this error?
Update:
After updating build tools to version 22.0.1, this error is gone but got new error:
> 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:
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!
You need to update the build tools to the version 22.X, I have tried in my project configuration and that works.
android:
components:
- android-22
- build-tools-22.0.1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With