-
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
"SoLoader.init() not yet called" when integrating react-native into existing android-app #25985
Comments
You need to override the onCreate function and call See this example |
After doing that I get this error:
And if I implement hermes, I get this error-msg:
I started my metro-bundler, but there is no difference.
And my app build.gradle looks like this:
@tbergq |
Yeah, I think there is a an open issue for that, check this #25923 |
You are right, I close this issue, thanks @tbergq |
I fixed my problem editing this line in my app/build.gradle:
|
Did that also solve the |
yes, if you integrate hermes in your app/build.gradle, it solves the problem @tbergq |
Hmm, ok. I also suffered both these problems. It was the suggestion of guys from our android team to put the I am quite certain that my path to root is set correctly, but I probably also need to remove the init from onCreate and find the real source of that error in my case. |
What path enter here |
I fixed the error by adding this override to my @Override
public void onCreate() {
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
} |
I have enabled hermes and even changed the root folder name accordingly but still I am unable to load script, its not able to locate index.js |
React Native version:
Steps To Reproduce
At this point, the react-native-app should open, not crashing.
I get this error-msg:
The text was updated successfully, but these errors were encountered: