Liu*_*ing 5 android travis-ci android-gradle-plugin
我正在尝试为我现有的Android项目设置Travis CI .我添加了.travis.yml:
language: android
android:
components:
- build-tools-21.1.2
- android-22
- extra-google-google_play_services
Run Code Online (Sandbox Code Playgroud)
但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.
Run Code Online (Sandbox Code Playgroud)
我该怎么做才能摆脱这个错误?
更新:
将版本工具更新到版本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.
...
Run Code Online (Sandbox Code Playgroud)
在我的build.gradle中:
dependencies {
compile 'com.android.support:support-v4:22.2.0'
compile 'com.google.android.gms:play-services:7.3.0'
}
Run Code Online (Sandbox Code Playgroud)
知道如何解决这个问题吗?
谢谢!
您需要将构建工具更新到版本22.X,我已经在我的项目配置中尝试过并且有效.
android:
components:
- android-22
- build-tools-22.0.1
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1612 次 |
| 最近记录: |