gpt4 book ai didi

android - 适用于 Android 的 Travis CI - 构建错误 : Failed to find target & Could not find dependencies

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:13:53 26 4
gpt4 key购买 nike

我正在尝试为我的 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'
}

知道如何解决这个问题吗?

谢谢!

最佳答案

您需要将构建工具更新到版本 22.X,我已经在我的项目配置中进行了尝试并且可以正常工作。

android:
components:
- android-22
- build-tools-22.0.1

关于android - 适用于 Android 的 Travis CI - 构建错误 : Failed to find target & Could not find dependencies,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30729943/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com