我无法用Travis-ci构建我的Android应用程序。它一直失败,因为:
Travis-ci command "./gradlew build" exited with 1.
我不知道是什么导致了这件事,崔维斯-奇也不知道如何解决这个问题!
伊戈尔,请告诉我
发布于 2015-12-27 16:20:40
对于任何感兴趣的人,我在我的文件中使用了以下组件部分来解决这个问题:
android:
components:
# Update Android SDK Tools
- tools
- build-tools-23.0.1
- android-23
# Support library
- extra-android-support
- extra-android-m2repository
另外,我的脚本部分有以下内容:
script:
- chmod +x ./gradlew
看来现在起作用了!
发布于 2016-12-20 07:05:34
嗨,我也有同样的问题,但是上面的解决方案不能在我的case.But中工作,如果通过
before_install:
- chmod +x gradlew
在before_install上应用chmode之后,我解决了这个问题。
完全.travis.yml
language: android
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-25.0.0
# The SDK version used to compile your project
- android-25
# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-22
- sys-img-armeabi-v7a-android-17
before_install:
- chmod +x gradlew
我希望这对未能从上述答案中获得解决办法的人有所帮助。
发布于 2017-03-02 22:46:04
我必须将第二行中的jdk设置为8,它可以工作:
language: android
jdk: oraclejdk8
android:
...
https://stackoverflow.com/questions/30741762
复制相似问题