gpt4 book ai didi

android - Android SDK许可协议(protocol)导致的Travis Ci构建错误

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:19:23 25 4
gpt4 key购买 nike

我有使用 CircleCi 的经验:

https://circleci.com/gh/mmirhoseini/fyber_mobile_offers/28

但我无法使用 TravisCi 上的相同存储库解决此许可问题:

https://travis-ci.org/mmirhoseini/fyber_mobile_offers/builds/167852390

这是 travis 错误日志:

FAILURE: Build failed with an exception.

What went wrong: A problem occurred configuring project ':fyber-app'.

You have not accepted the license agreements of the following SDK components: [SDK Patch Applier v1, Google Repository].

Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

Travis Ci Screenshot

我知道这是一个许可证问题,但不知道如何解决。这是我的 .travis.yml 文件:

language: android

sudo: required

android:
components:
- tools
- platform-tools
- build-tools-24.0.2
- android-24
- extra-android-m2repository
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'intel-android-extra-license.+'

jdk:
- oraclejdk8

before_install:
- chmod +x gradlew

script:
- ./gradlew build

最佳答案

您似乎缺少 google 存储库。

添加 -extra-google-m2repository 并再次尝试构建。

这是我的.travis.yml,供引用:

language: android
android:
components:
- tools
- platform-tools
- build-tools-24.0.3
- android-24
- extra-android-m2repository
- extra-google-m2repository
- extra-android-support
- extra-google-google_play_services
jdk:
- oraclejdk8
script:
- ./gradlew test

关于android - Android SDK许可协议(protocol)导致的Travis Ci构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40057865/

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