Error with gradlew: /usr/bin/env: bash: No such file or directory

前端 未结 4 1060
南笙
南笙 2020-12-08 06:18

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

4条回答
  •  天命终不由人
    2020-12-08 07:18

    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)

提交回复
热议问题