Travis.yml ./gradlew : Permission denied
问题 Using Travis CI for an existing Android project calling $ ./gradlew build connectedCheck I get this error: /home/travis/build.sh: line 45: ./gradlew: Permission denied The command "./gradlew build connectedCheck" failed and exited with 126 during . 回答1: It depends by the exec-permission to your unix gradlew script. It can be fixed using the command: git update-index --chmod=+x gradlew A little desciption to understand the problem. First of all you can check your permissions using: git ls-tree