Travis-ci 命令“./gradlew build”以 1 退出
Travis-ci command "./gradlew build" exited with 1
我无法使用 Travis-ci 构建我的 Android 应用程序。它一直失败:
Travis-ci command "./gradlew build" exited with 1.
我不知道是什么原因造成的,Travis-ci 没有关于如何修复它的信息!
请指教,
伊戈尔
对于任何感兴趣的人,我在 travis.yml 文件中使用了以下 android 组件 部分来解决问题:
android:
components:
# Update Android SDK Tools
- tools
- build-tools-23.0.1
- android-23
# Support library
- extra-android-support
- extra-android-m2repository
另外,我的 script 部分有以下内容:
script:
- chmod +x ./gradlew
现在似乎可以工作了!
您好,我也有同样的问题,但如果通过提供
解决问题,上述解决方案在我的 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
我希望这能帮助那些未能从上述答案中得到解决方案的人。
我必须将第二行中的 jdk 设置为 8,它起作用了:
language: android
jdk: oraclejdk8
android:
...
我无法使用 Travis-ci 构建我的 Android 应用程序。它一直失败:
Travis-ci command "./gradlew build" exited with 1.
我不知道是什么原因造成的,Travis-ci 没有关于如何修复它的信息!
请指教, 伊戈尔
对于任何感兴趣的人,我在 travis.yml 文件中使用了以下 android 组件 部分来解决问题:
android:
components:
# Update Android SDK Tools
- tools
- build-tools-23.0.1
- android-23
# Support library
- extra-android-support
- extra-android-m2repository
另外,我的 script 部分有以下内容:
script:
- chmod +x ./gradlew
现在似乎可以工作了!
您好,我也有同样的问题,但如果通过提供
解决问题,上述解决方案在我的 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
我希望这能帮助那些未能从上述答案中得到解决方案的人。
我必须将第二行中的 jdk 设置为 8,它起作用了:
language: android
jdk: oraclejdk8
android:
...