【发布时间】:2015-06-09 10:51:25
【问题描述】:
我正在尝试为我的existing Android project. 设置 Travis CI,我添加了 .travis.yml:
language: android
android:
components:
- build-tools-21.1.2
- android-22
- extra-google-google_play_services
但它总是在 Travis CI 中失败并出现以下错误:
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.
我应该怎么做才能摆脱这个错误?
更新:
将构建工具更新到 22.0.1 版本后,此错误消失但出现新错误:
> Could not find com.android.support:support-v4:22.2.0.
...
> Could not find com.google.android.gms:play-services:7.3.0.
...
在我的 build.gradle 中:
dependencies {
compile 'com.android.support:support-v4:22.2.0'
compile 'com.google.android.gms:play-services:7.3.0'
}
知道如何解决这个问题吗?
谢谢!
【问题讨论】:
-
您更新的问题与此问题重复:stackoverflow.com/questions/25644996/…
标签: android android-gradle-plugin travis-ci