I am new to React Native and Mobile App Development. I am trying to start up my bare React Native project in my Emulator and it gives me issue to set up.
I get this error when I click on the button a to set to Android Emulator from my command terminal
Couldn’t adb reverse: adb.exe: error: device offline
Couldn’t start project on Android: Error running adb: device offline
please how do I fix it
here is my system variable
C:UsersJUWONCALEB.DESKTOP-CMA289UAppDataLocalAndroidSdk
3
Answers
running adb devices after running adb kill-server. Security question pops up after that. Worked for me.
1/ run
npm start
2/ go to
http://localhost:19002
3/ press on Lan and copy the URL under it eg.
exp://192.168.1.3:19000
4/ download expo app in your device from your android studio.
5/ open expo and click
Enter URL manually
and paste the URL u copied in the previous step6/ if needed: reload by clicking "r" button in your command line
Try to:
1 Launch the android emulator (any sdk is fine as any model)
2 open the settings IN the emulator
3 activate developer mode