Android error “Could not get BatchedBridge, make sure your bundle is packaged properly” on start of

缥帙各舒散,前后互相逾。这篇文章主要讲述Android error “Could not get BatchedBridge, make sure your bundle is packaged properly” on start of 相关的知识,希望能为你提供帮助。
问题1:android error “ Could not get BatchedBridge, make sure your bundle is packaged properly” on start of app

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


 问题2:How to resolve “ EADDRINUSE: address already in use” error(8081端口被占用了)
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)

 解决办法:
lsof -i TCP:8081 | grep LISTEN

 会出现如下类似提示:
node2464 murari21uIPv6 43926390t0TCP *:http-alt

【Android error “Could not get BatchedBridge, make sure your bundle is packaged properly” on start of】 然后执行:
kill -9 2464

ok。到此就解决了。

    推荐阅读