gpt4 book ai didi

travis-ci - SDK 目录不存在 Travis CI

转载 作者:行者123 更新时间:2023-12-02 17:25:15 25 4
gpt4 key购买 nike

我有这个 .travis.yml 文件,但在构建时我经常遇到这个错误:

* What went wrong:
A problem occurred configuring project ':app'.
> The SDK directory '/home/travis/build/Me/MyProject/C:\Users\Me\AppData\Local\Android\Sdk' does not exist.


我的 .travis.yml

language: android
before_install:
- chmod +x gradlew
script:
- ./gradlew clean assembleDebug
install:
- true
- chmod +x ./gradlew; ls -l gradlew; ./gradlew wrapper -v
android:

components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
# - platform-tools
# - tools

# The BuildTools version used by your project
- build-tools-23.0.3

# The SDK version used to compile your project
- android-23

# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-23

# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-23
- sys-img-x86-android-17

我在谷歌上找不到任何关于它的信息,所以我不知道如何修复它

最佳答案

不要将您的 local.properties 文件提交到您的存储库中。

关于travis-ci - SDK 目录不存在 Travis CI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39056335/

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