I am having the same error again and again after when i start the React Native Project!
Asked
Active
Viewed 44 times
2 Answers
0
Looks like something with the emulator. Close all emulators that you have running, open the Taskmanager and under Processes look for adb.exe and kill all processes that are named like that.
After that run the emulator again and then try to start your project again.

yesIamFaded
- 1,970
- 2
- 20
- 45
-
I killed all the processes of adb.exe but this error error did not go :( – Shahzada Muhammad Ahmed Nov 20 '20 at 10:58
-
maybe take a look into this SO question: https://stackoverflow.com/questions/42064283/could-not-connect-to-react-native-development-server-on-android – yesIamFaded Nov 20 '20 at 11:01
0
- Create
local.properties
file - Add
sdk.dir=C\:\\Users\\Admin\\AppData\\Local\\Android\\Sdk
following insidelocal.properties
file that you created - Then add your
local.properties
file inside android folder. - Try
react-native run-android

Jasur Kurbanov
- 80
- 6
-
You mean to say make file on notepad which name is local.properties and in that i file add sdk.dir=C\:\\Users\\Admin\\AppData\\Local\\Android\\Sdk in the file and add local.properties file in sdk folder ? – Shahzada Muhammad Ahmed Nov 20 '20 at 11:13
-