-
Notifications
You must be signed in to change notification settings - Fork 585
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 | react-native - Error: Could not find the Realm binary. #6204
Comments
@arshad-slate Thanks for posting this. I can't see anything wrong with your setup, so very strange that this is occuring. |
@takameyer Downloading the template gave error you must user I am on macOS 13.6, and Apple M2 chip. Running template on android throws the following error:
|
@arshad-slate curious...in both projects it appears metro is having issues accessing |
@arshad-slate I can reproduce the second issue. We will look into that now. The current workaround would be to use |
@arshad-slate Can you try, in both projects, the following:
And then try building again. I have witnessed some post-install scripts being skipped with the template and this should make sure our package settles down as expected after install. |
I had a very similar issue. I was able to fix it by 'Stop Debugging' on my iOS simulator. I accidentally found that whenever I chose to 'Debug with Chrome', this issue would reappear.
Hope this helps. |
had the same issue where this only appeared in debug mode for IOS |
I have been having the same problem on my Windows machine and using an iOS device for testing. I have downloaded multiple templates and online samples, and get the same problem each and every time. I have tried EVERYTHING. I even download this sample and got the same problem: I even followed this example step-by-step. Everything worked fine until I got to the step where I added the code to import realm: (https://dev.to/aaronksaunders/realm-database-expo-sdk-49-and-expo-router-getting-started-434e). Please help |
The problem persists. I have tried multiple sample projects and templates to no avail. Using Windows, Expo, React Native and an iOS device. FYI, I have successfully used Mongoose with my Web-based app with zero problems. |
same problem for me, you managed to find a way around it? |
I created a simple sample project using the following command:
expo init realmTest --template @realm/expo-template
Afterwards I simply tried to run the program using the following command:
[cid:fd2a352e-d717-4f03-af2e-ea943670857f]
This is the result:
[cid:8e408327-17e4-46c7-891c-7868462480c8]
I researched it and it seems as though the problem was fixed a while back but it seems like it really wasn't. So I switched to Expo Go and this was the result when I tried to read using the iPhone camera:
[cid:85728ae4-e023-4bda-9516-7c2e3c3c423d]
No usable data found. Any ideas?
…________________________________
From: Damian Klekot ***@***.***>
Sent: Monday, November 20, 2023 7:40 AM
To: realm/realm-js ***@***.***>
Cc: suntan-superman ***@***.***>; Comment ***@***.***>
Subject: Re: [realm/realm-js] Android | react-native - Error: Could not find the Realm binary. (Issue #6204)
@arshad-slate<https://github.com/arshad-slate> Can you try, in both projects, the following:
rm -rf node_modules/realm
npm install realm
And then try building again. I have witnessed some post-install scripts being skipped with the template and this should make sure our package settles down as expected after install.
The problem persists. I have tried multiple sample projects and templates to no avail. Using Windows, Expo, React Native and an iOS device. FYI, I have successfully used Mongoose with my Web-based app with zero problems.
same problem for me, you managed to find a way around it?
—
Reply to this email directly, view it on GitHub<#6204 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BAQP2RN52AKSDMHKK435GQTYFN2VZAVCNFSM6AAAAAA6HE7NI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJZGMYDMNZZGA>.
You are receiving this because you commented.
|
@suntan-superman Your screenshots are not visible. Can you update your comment so we can see what commands you attempted? |
Of course. I apologize for that.
After building the example project using: expo init realmTest --template @realm/expo-template
I ran: yarn start #
The result was as follows:
yarn run v1.22.19
warning ..\..\package.json: No license field
The Metro Bundler started successfully yet when I tried to run the project in the Android emulator I got the following message:
Required package 'android.package' is not found in the project app.json
When I tried to run the project using the Expo Go and an iPhone, I got the error message 'No Usable Data Found' when scanning the QR code.
I did not touch the code and after building the fresh project. The package.json looks like this:
{
"name": "realmtest",
"version": "1.0.0",
"scripts": {
"start": "expo start --dev-client",
"android": "expo run:android",
"ios": "expo run:ios"
},
"dependencies": {
***@***.***/react": "^0.6.0",
"expo": "^49.0.8",
"expo-dev-client": "~2.4.8",
"expo-splash-screen": "~0.20.5",
"expo-status-bar": "~1.6.0",
"react": "18.2.0",
"react-native": "0.72.4",
"react-native-get-random-values": "~1.9.0",
"realm": "12.0.0"
},
"devDependencies": {
***@***.***/core": "^7.22.5",
***@***.***/plugin-proposal-decorators": "^7.22.5",
***@***.***/babel-plugin": "^0.1.1",
***@***.***/react": "~18.2.13",
"typescript": "^5.1.3"
},
"license": "Apache-2.0",
"private": true
}
The app.json looks like this:
{
"expo": {
"name": "realmTest",
"slug": "realmTest",
"version": "1.0.0",
"assetBundlePatterns": [
"**/*"
]
}
}
This is the index.js file:
import 'expo-dev-client';
import 'react-native-get-random-values';
import React from 'react';
import {registerRootComponent} from 'expo'
import {AppWrapperNonSync} from './app/AppWrapperNonSync';
import {AppWrapperSync} from './app/AppWrapperSync';
import {SYNC_CONFIG} from './sync.config';
const App = () =>
SYNC_CONFIG.enabled ? (
<AppWrapperSync appId={SYNC_CONFIG.appId} />
) : (
<AppWrapperNonSync />
);
registerRootComponent(App);
Please let me know if you need anything else. As a side note, I have been using JS rather than TypeScript for my main project.
…________________________________
From: Andrew Meyer ***@***.***>
Sent: Tuesday, November 21, 2023 1:40 AM
To: realm/realm-js ***@***.***>
Cc: suntan-superman ***@***.***>; Mention ***@***.***>
Subject: Re: [realm/realm-js] Android | react-native - Error: Could not find the Realm binary. (Issue #6204)
@suntan-superman<https://github.com/suntan-superman> Your screenshots are not visible. Can you update your comment so we can see what commands you attempted?
—
Reply to this email directly, view it on GitHub<#6204 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BAQP2RKNRZTPMPGZ7M2BYHTYFRZKXAVCNFSM6AAAAAA6HE7NI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRQGU3DCNZZGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@suntan-superman Expo Go does not support Realm - please see #6193 (comment) |
How frequently does the bug occur?
Always
Description
I am always getting error " Error: Could not find the Realm binary.". Checked the troubleshooting steps and could see necessary binaries are already downloaded.
hermesEnabled = true
Following are the SDK versions used.
Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
No response
Version
12.2.1
What services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Android API lever 31+
Build environment
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: