‘gradlew’ is not recognized as an internal or external command error in Android Studio terminal

Issue

Getting error – 'gradlew' is not recognized as an internal or external command. operable program or batch file. inside Android Studio terminal.

Can anyone please tell why it’s not recognizing gradlew

Solution

  1. gradlew command is available in your project directory. If you are trying to run this command from somewhere else it will throw error.
  2. Also gradlew command package is automatically generated by Android studio when you create a new project. It will also prompt you to generate new gradle wrapper when you open the project.
  3. you have to use ./gradlew instead of gradlew , if you are using Mac or Linux

Answered By – charlie

Leave a Comment