Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Travis-ci command "./gradlew build" exited with 1

I am unable to build my Android application with Travis-ci. It keeps failing with:

Travis-ci command "./gradlew build" exited with 1.

I have no idea what's causing this, and Travis-ci has no information on how to fix it!

Please advise, Igor

like image 378
IgorGanapolsky Avatar asked Jun 09 '15 20:06

IgorGanapolsky


1 Answers

For anyone who is interested, I used the following android components section in my travis.yml file to solve the problem:

android:
  components:
    # Update Android SDK Tools
    - tools

    - build-tools-23.0.1
    - android-23

    # Support library
    - extra-android-support
    - extra-android-m2repository

Also, my script section has the following:

script:
- chmod +x ./gradlew

Seems to work now!

like image 134
IgorGanapolsky Avatar answered Jun 06 '23 06:06

IgorGanapolsky