gradlew command not found?

后端 未结 14 1934
花落未央
花落未央 2020-12-12 17:38

I am working on a Java project with gradlew. I use Ubuntu Linux as my OS. When I run \"gradle\" it runs, and gives me info. But when I run \"gradlew\", it outputs as \"No co

相关标签:
14条回答
  • 2020-12-12 18:33

    You must have the Gradle wrapper available locally before using gradlew. To construct that

    gradle wrapper # --gradle-version v.xy
    

    Optionally, pass the gradle version explicitly. This step produces the gradlew binary.And then you should be able to

    ./gradlew build
    
    0 讨论(0)
  • 2020-12-12 18:34

    If you are using mac, try giving root access to gradlew by doing

    chmod +x ./gradlew
    
    0 讨论(0)
提交回复
热议问题