-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android error “Could not get BatchedBridge, make sure your bundle is packaged properly” on start of app #9336
Comments
I get a similar error when trying to run an iOS app using a local build (no dev server): |
Sometimes I got this error when I start clean app (bundle was never downloaded) In most cases there is error in connection between phone and computer.
does a thing |
I got same error both android device and emulator |
@T0toRo facing the same error, but the info at the link doesn't help me |
|
Found the solution: |
I got it to work by changing in the file .buckconfig the line: Edited: |
@fisherman818 as i said.. |
@Stoffern yes, you are right. thanks |
This solution on Stack Overflow worked for me: http://stackoverflow.com/a/38874952/1880100 I am only seeing this issue on my 6.0.0 emulator, but not my 4.4.4 emulator |
可以看下这个 |
Anyone found the solution? (tried all here... ) |
I had the same problem with a clean installation, and I solved it with http://stackoverflow.com/questions/38870710/error-could-not-get-batchedbridge-make-sure-your-bundle-is-packaged-properly I think this should be documented. |
I had the same issue. I first needed to run the server and then |
react-native start tells you what's wrong. In my case, there were other processes listening on port 8081. Solved it by getting them:
and then killing them'all. |
any feasible solution?
|
@changkun Try to change an emulator device |
@Antibioticvz cool! It works for me, just simply change the emulator from nexus5 to nexus 6. |
@changkun what the emulator do you use? I've got this problem for Genymotion -> nexus 5 (5.0.0 api21) |
@Antibioticvz I was using Genymotion Nexus 5 (6.0.0, API 23), then I followed your suggestion change to Nexus 6 (6.0.0, API 23) everthing works fine. However, now this error happens again... even to use the nexus 6 emulator... |
This issue is frustrating me.. i tried in all the devices with Android 4.4, 5.0.1, 6.0.. and getting the same issue "could not get batchedbridge make sure your bundle is packaged correctly".. . please help me to fix.. its working fine in emulator, issue only on actual device. I am using: |
For physical device in helps to me (in console): Environment:
p.s app build with android studio |
This is happening on both of my emulator and mobile device, and none of the solutions working for me, sadly. |
Same Here |
So I dig a little bit more and found that my I ran manually the following command which the debug build command should have created ideally. node node_modules/react-native/local-cli/cli.js bundle --platform android --dev true --reset-cache --entry-file index.android.js --bundle-output /<path to dir>/android/app/build/intermediates/assets/debug/index.android.bundle --assets-dest /<path to dir>/android/app/build/intermediates/res/merged/debug After running these commands I found two bundle files in my And then a I ran again |
@sumit6b Thanks, your solutions works for me. |
This issue also happens if your device is not on the same network as your dev machine. |
I created a demo program,and run it on samsung 5.0 successfully, but failed to run on 4.4.4,The error is same with up, I have try to all the methods provided by provider,but no effect! |
Android 4.4 OK |
Just uninstall the app and run |
@Zygro can we close this? |
How can we run app on android v4 devices :( i'm still getting this error |
Solution: |
@sumit6b's solution worked for me, using Bluestacks |
It works after I did |
Hello, I am trying to run my react native app but i am not able to resolve the issue "Android error “Could not get BatchedBridge, make sure your bundle is packaged properly” on start of app" , is there any fix for it , i cannot find any solution on web either. |
Hi , I also get the below error Execution failed for task ':app:processDebugResources'.
Does anyone has a solution on how can i run the app on emulator ??? |
@sumit6b your solution worked for me, thanks a lot. But how can i also have hot reload with this, as with your solution i will have to build my app every time when i make any changes. |
@siddhant91 have you tried this? |
@ryanhomer thanks i also had included that Debug thing and I could not load the developer menu anymore, that's great ! 🙌 |
@ryanhomer saved my life. thanks |
@Markortiz you saved my day. Thanks!! |
Try this option if you have this problem in android emulator, open your emulator goto more options present outside the emulator, in that select 'cellular'. Note: This is just one of the possible solution which worked for me, hence try other solutions if it doesn't work. |
@Stoffern Thank you, mate. You saved my day 👍🏻.
|
why is this still open? |
this bug happen when I used RELEASE version build config. switch to DEBUG version fix this issue . |
This works for me
|
This might be useful for someone who is in the same situation I'm in but if you get a "watch" error after attempting to run "react-native start" take a look at the solution by @grit96 fbsamples/f8app#55 |
Solution
Run the following:
Description
After creating a project and not changing a single file, I tried to test it on my 4.4.2. device. I got this red screen right on start of the app and after dismissing it, only white screen was shown instead of welcome message that was supposed to be there.
I also got this error on 5.1.1, but the project worked fine on 6.1.1.
Android emulator (for 4.4.2) was also able to display the messages without this redscreen
Edit: On Stack Overflow, user tbo has posted an answer with a workaround. It does work, however it's not ideal as it takes more time http://stackoverflow.com/questions/38870710/error-could-not-get-batchedbridge-make-sure-your-bundle-is-packaged-properly/38874952#38874952
The text was updated successfully, but these errors were encountered: