特拉维斯CI为Android - 生成错误:无法找到目标和放大器;找不到依赖 [英] Travis CI for Android - Build Error: Failed to find target & Could not find dependencies
本文介绍了特拉维斯CI为Android - 生成错误:无法找到目标和放大器;找不到依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图建立特拉维斯CI为我的现有的Android项目。我已经添加了.travis.yml:
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
但它总是在特拉维斯CI失败,出现以下错误:
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?
更新:结果
更新构建工具来22.0.1版本后,该错误是走了,但得到了新的错误:
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.
...
在我的build.gradle:
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?
谢谢!
推荐答案
您需要更新构建工具的版本22.x暂时的,我在我的项目配置已经尝试和作品。
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
这篇关于特拉维斯CI为Android - 生成错误:无法找到目标和放大器;找不到依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文