Fix Gradle Wrapper / Gradlew not working on Windows Linux subsystem


WSL doesn’t get what gradle wrapper is

Despite having gradle installed; JAVA_HOME & ANDROID_HOME variables setup; gradle wrapper refuses to run on windows 10 Linux subsystem


This is happening because of windows and linux handle end of line characters differently. Fix this by setting git’s global config on how to handle end of line chars at checkout. Open bash terminal and type in.

git config –global core.autocrlf false

After doing this, delete the old project folder and clone the project again. And voila ! Gradle wrapper now works !