Skip to content Skip to sidebar Skip to footer

React- Native: 'adb' Is Not Recognized As An Internal Or External Command, Operable Program Or Batch File

Am new to react-native android app development. Please help me solve this issue. Am not able to run my first application, am getting error as adb' is not recognized as an internal

Solution 1:

I found the solution for this.

All you have to do is add the adb path in system variable.

Copy the adb location, and goto Controlpanel->System->Advnaced System Settings->Environment Variables->Under System Variables you will find PATH variable, selct that first and click on Edit, then click on New and paste your adb path, now click Ok. Thats it problem solved.

Now restart your command prompt, and run react-native run-android. It works:)

Hope this helps someone. Thanks for checking out my question.

Solution 2:

It is based upon your IDE, If you are using Webstorm you have to go to Settings -->Appearance & Behaviors --> Path Variable. Now you will get the new window that might have been empty. Top-Right of the you will see "+" icon you have to select that one and set your variable. My Variable is like:

Name: ANDROID_HOME Value: D:\Android_SDK\platform-tools.

Solution 3:

You see blank screen because your server is not running or stopped

Did you run adb reverse if you are debugging using usb

try connecting laptop and mobile to same wifi and enter your ip:8081 in dev settings

Solution 4:

I had this problem many times and the given answers are definetly the way to fix it but i recently got this error again but the build was successful and i couldn't fix it this way. i found out it was a internet connection error with the emulator.

just restart the emulator if you have this and make sure you can go on the internet opening google chrome.

Solution 5:

If your metro is already stared but getting this error.Run Command this =====>. adb reverse tcp:8081 tcp:8081. App runs successfully on device.adb reverse tcp:8081 tcp:8081 If getting this kind of error:

enter image description here

Post a Comment for "React- Native: 'adb' Is Not Recognized As An Internal Or External Command, Operable Program Or Batch File"