After committing my project\'s gradlew file from my Windows machine to the remote repo using Git, invoking gradlew on my Linux server failed with t
Thanks for the answers, these highlighted that the problem was Windows creating the gradlew, when I am on mac.
To fix this, from the directory of the app I ran the command:
gradle wrapper
This creates (replaces the broken) a gradle wrapper, that works! (notice it uses your local gradle install to fix the wrapper of the app)