gradlew: Permission Denied

后端 未结 14 2160
闹比i
闹比i 2020-12-02 03:45

I am attempting to run gradlew from my command line, but am constantly facing the following error.

Brendas-MacBook-Pro:appx_android brendalogy$ ./gradlew com         


        
相关标签:
14条回答
  • 2020-12-02 04:23

    on android folder cmd run

    chmod +x gradlew
    

    and run

    ./gradlew clean
    

    and root project run

    react-native run-android
    
    0 讨论(0)
  • 2020-12-02 04:25

    I got the same error trying to execute flutter run on a mac. Apparently, in your flutter project, there is a file android/gradlew that is expected to be executable (and it wasn't). So in my case,

    chmod a+rx android/gradlew
    

    i used this command and execute the project

    0 讨论(0)
  • 2020-12-02 04:26

    You could use "bash" before command:

    bash ./gradlew compileDebug --stacktrace
    
    0 讨论(0)
  • 2020-12-02 04:26

    With this step set permission to gradlew

    steps {
        echo 'Compile project'
        sh "chmod +x gradlew"
        sh "./gradlew clean build --no-daemon"
    }
    
    0 讨论(0)
  • 2020-12-02 04:27

    git update-index --chmod=+x gradlew

    This command works better especially on non-unix system.

    0 讨论(0)
  • 2020-12-02 04:32

    Try to set the execution flag on your gradlew file:

    chmod +x gradlew

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