gradlew command not found?

后端 未结 14 1935
花落未央
花落未央 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:21

    Linux / MacOS

    As noted in the comments, just running

    ./gradlew
    

    worked for me. Adding the ./ tells it to look in the current directory since it isn't in the path.

    Windows PowerShell

    .\gradlew
    
    0 讨论(0)
  • 2020-12-12 18:22

    Hi @Hayden Stites I faced the same issue, but after some tries I found it was happening because I was trying to create build in git bash , instead of CMD with admin access. If you create build with Command prompt run as administrator build will get create.

    0 讨论(0)
  • 2020-12-12 18:27

    If you are using VS Code with flutter, you should find it in your app folder, under the android folder:

    C:\myappFolder\android

    You can run this in the terminal:

    ./gradlew signingReport
    
    0 讨论(0)
  • 2020-12-12 18:28

    Gradle wrapper needs to be built. Try running gradle wrapper --gradle-version 2.13 Remember to change 2.13 to your gradle version number. After running this command, you should see new scripts added to your project folder. You should be able to run the wrapper with ./gradlew build to build your code. Please refer to this guid for more information https://spring.io/guides/gs/gradle/.

    0 讨论(0)
  • 2020-12-12 18:28

    Running this bash command works for me by running chmod 755 gradlew as sometimes file properties changed upon moving from one OS to another (Windows, Linux and Mac).

    0 讨论(0)
  • 2020-12-12 18:29

    From mac,

    Nothing is working except the following command

    chmod 777 gradlew Then

    ./gradlew

    0 讨论(0)
提交回复
热议问题