最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - React native - Metro server - Stack Overflow

programmeradmin0浏览0评论

I developping my react native app on my tablet (Samsung Tab Active) for 2 years. I don't have any problems, I use usuals lines :

adb reverse tcp:8081 tcp:8081 then npm run start

I bought a new phone (Samsung Galaxy Flip), the app is installed (with android studio) but the metro server don't work :

No apps connected. Sending "reload" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB.

Anybody know what i missed ?

Thanks for your help :)

I developping my react native app on my tablet (Samsung Tab Active) for 2 years. I don't have any problems, I use usuals lines :

adb reverse tcp:8081 tcp:8081 then npm run start

I bought a new phone (Samsung Galaxy Flip), the app is installed (with android studio) but the metro server don't work :

No apps connected. Sending "reload" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB.

Anybody know what i missed ?

Thanks for your help :)

Share Improve this question asked Mar 2 at 9:17 ElodieElodie 131 silver badge3 bronze badges 1
  • Have you turned on Dubugging mode on your phone ? – Ahmad Gulzar Commented Mar 2 at 18:19
Add a comment  | 

1 Answer 1

Reset to default 0

Please follow this procedure to make sure you are not missing any steps

  1. Turn ON DEV and debugging mode on your phone
  2. Connect it your PC a popUp will appear only first time to Allow USB Debugging? Press Always allow and OK

  1. Make sure your PC and Mobile is connected to the same Network(WIFI)
  2. Now run npx react-native run-android
发布评论

评论列表(0)

  1. 暂无评论