chmod 777 platforms/android/gradlew //or another script file causing the issue cordova build --verbose android //helps identifying the script causing the issue