hi tôi cũng có cùng một vấn đề nhưng giải pháp trên đã không được làm việc trong case.But tôi nếu sửa chữa nó bằng cách cho
before_install:
- chmod +x gradlew
Sau khi áp dụng chmode trên before_install tôi đã giải quyết vấn đề này.
.travis.yml Hoàn
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
Tôi hy vọng điều này sẽ giúp bất cứ ai thất bại để có được những giải pháp từ các câu trả lời ở trên.