Error: Missing Realm constructor. Did you run "pod install" on Android
See original GitHub issueHow frequently does the bug occur?
All the time
Description
Error: Missing Realm constructor. Did you run “pod install” on react-native run-android. I try to build app on MacMini. Everything works fine if Hermes is enabled and New Architecture is disabled. But, as soon as I turn on the new architecture, the application crashes after launch with such an error. The app is built from the newest Reactnative example.
my package: “react”: “18.1.0”, “react-native”: “0.70.3”, “realm”: “11.0.0”,
I also tried to clear the build folder, put different versions of ream-11-rc-2 and so on
Stacktrace & log output
ERROR Error: Missing Realm constructor. Did you run "pod install"? Please see https://docs.mongodb.com/realm/sdk/react-native/install/ for troubleshooting, js engine: hermes
LOG Running "test-project" with {"fabric":true,"initialProps":{"concurrentRoot":true},"rootTag":41}
Can you reproduce the bug?
Yes, always
Reproduction Steps
- Init latest React-native 70 fabric example (NO expo)
- Add latest realm package to project (11.0.0)
- Hermes ON (now by default), New Architecture ON
- react-native run-android
Successfully build x Crush on startup app
Version
v11.0.0
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
Android 10
Build environment
All from React-native 0.70.3 newest template. Ruby 2.7.6
Cocoapods version
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Missing Realm constructor. Did you run "pod install"? (I'm ...
As the error message suggests, you need to install the pod files for realm to work with iOS. Those are the steps: In...
Read more >Missin Realm Constructor error - MongoDB
@Samuele_Cervietti This typically happens when the Realm .so is not linked into the compiled React Native project. Verify that pod install has ...
Read more >Someone else have tried to implement Realm in an Expo ...
I just add the import in my android project and have this issue. Error: Missing Realm constructor. Did you run "pod install"? Please ......
Read more >Missing realm constructor react native ios but realm is linked ...
Coding example for the question Missing realm constructor react native ios ... How to fix pod install error glog is too old or...
Read more >Missing realm constructor did you run pod install trabalhos
Busque trabalhos relacionados a Missing realm constructor did you run pod install ou contrate no maior mercado de freelancers do mundo com mais...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
same issue on IOS.
@kneth I don’t think that’s a good idea, because upgrading the version to 0.70 is a new architecture that will occur many other problems.