【React Native错误集】Android error “Could not get BatchedBridge, make sure your bundle is packaged prope

  问题1:Android error “Could not get BatchedBridge, make sure your bundle is packaged properly” on start of appnode

react-native run-android
react-native start --reset-cache

  

 问题2:How to resolve “EADDRINUSE: address already in use” error(8081端口被占用了)  react

Error: listen EADDRINUSE: address already in use :::8081
    at Server.setupListenHandle [as _listen2] (net.js:1258:14)
    at listenInCluster (net.js:1306:12)
    at Server.listen (net.js:1394:7)

 解决办法:android

lsof -i TCP:8081 | grep LISTEN

 会出现以下相似提示:react-native

node    2464 murari   21u  IPv6 4392639      0t0  TCP *:http-alt

 而后执行:app

kill -9 2464

  ok。到此就解决了。spa

相关文章
相关标签/搜索