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

Posted Mr.Landen

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

 会出现如下类似提示:

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

 然后执行:

kill -9 2464

  ok。到此就解决了。

以上是关于Android error “Could not get BatchedBridge, make sure your bundle is packaged properly” on start of 的主要内容,如果未能解决你的问题,请参考以下文章

Error:Could not find com.android.tools.build:gradle:2.14.1.

Windows cordova build Error: Could not find gradle wrapper within Android SDK.(转)

ERROR: Could not find com.android.tools.build:gradle:3.5.0. Searched in the following locations:

Android Studio新建项目出错,Error:(22, 0) Could not find method android() for arguments

Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK. Look

Android studio 编译失败Error:Could not read entry ':app:processDebugManifest' from cache