'gradlew.bat' is not recognized as an internal or external command

kai jie picture kai jie · Apr 2, 2017 · Viewed 25k times · Source

So i am trying to start a react native android project in windows 10 based on the Getting Start React Native. I am stuck at the last step->react-native run-android

Screenshot of command prompt

ps: Im using genymotion for my android emulator marshmallow 6.0

Answer

kai jie picture kai jie · Apr 8, 2017

Got it,

Add the file location to environment variable PATH

C:\Users\user\AppData\Local\Android\Sdk\tools\templates\gradle\wrapper