-
Notifications
You must be signed in to change notification settings - Fork 346
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 crash with Jitsi-Meet: Module AppRegistry is not a registered callable module (calling runApplication) - Jitsi-meet #33
Comments
Hi @MeghsP, Your error seems to be related to react-native-camera that is not properly linked. Are you able to verify that everything is correctly setup ? |
Hi @skrafft , Thanks for your reply. To clear this doubt of react camera linking in app, I try to open react native camera on Splash screen and everything works fine. Camera opens successfully.
so I don't think it has any issue with react-native-camera. Also app is being crashed from Android not from React-Native. It gives ANR saying "<app_name> has stopped Open app again" and gives above error in Android Studio logs only when I try to call jitsi meet functions. |
Hi @skrafft , Now I have totally removed react-native-camera from my application. Now when I call your code:
From React-native like this:
When JitsiMeet.call("MeghsP"); is being called, it opens new screen for a few seconds and then app is being crashed with below error logs.
|
Hi @MeghsP, Can you confirm that you are using v1.2.0 of react-native-jitsi-meet ? |
Hi @skrafft , This is what in my app's package.json file which seems correct: This is my app's build.gradle file:
And this is the code from my MainApplication.java:
|
It seems to be fine. Would you be able to share your repository with me so that I can investigate more ? |
@skrafft Yes sure, Give me sometime. I will upload latest code and provide you that |
Hi @MeghsP, I did tests with your app and managed to make it work by doing the followings:
With the 3 changes, the project works fine on my side. |
Hi @skrafft , I tried your solution and run my app. It still gives me same error. Did you change anything else in code? This is my code from react-native:
It still gives following error:
It seems that this code is calling another module called App from Jitsi-Meet dependency which is not registered by my app because I register my own application's name in AppRegistry. Also it says you are running the packager from a wrong folder. This seems because from command line I run my project from its path and jitsi-meet dependency calling their own module App which need its separate metro server to run. This is what it seems to me. I don't have any option to figure this out. It has been a lot of days and this issue is taking too much time. If possible please share your updated code. |
@MeghsP did you remove the file android/app/src/main/assets/index.android.bundle which is useless and conflicts with react-native-jitsi-meet. It seems that you did not. |
@skrafft , after I deleted index.android.bundle, how can I do generate apk file in release mode? Because of the release mode need the bundle generated with this command line:
If I removed this file, I will get err and crash on start up in release mode:
Note that it works in debug mode. |
Hi @ngoctan95, With react-native-jitsi-meet installed, index.android.bundle is Jitsi Meet so your bundle name has changed to app.bundle. The command would then be:
|
Hi @skrafft , I am using your library for react-native and it has added jitsi-meet as a dependency not as a module and it has not changed bundle name as app.bundle it is still index.android.bundle and I tried everything whatever you wrote but no luck. It has too many days for this issue and it is not figuring out anymore. Please share your working example if you have any. I will deploy it on my system and will check if its working on my system or not. |
Hi @skrafft , After doing a lot of struggle now when I removed index.android.bundle file from assets and then execute "react-native run-android" it runs my app perfectly. Issue is when I share that APK to install into other device it always crash there and says
Any solution for this? |
I build successfully after deleting the index.android.bundle and just run the command line for release mode. |
@ngoctan95 , |
No. For the both release mode and debug, it works. |
Hi @skrafft , Regarding latest issue of unable to load script, it resolved only when I generate a release build. So at the end, everything works fine now including jitsi-meet video conference. Going to close this issue now. Thanks for all your support! |
I am using react-native-Jitsi-Meet dependency in android for one of my react native application. I setup everything in Android and calling initialize method from React Native. It always crashes on android saying
Module AppRegistry is not a registered callable module (calling runApplication)
Here is full crash log:
Code I am using in Android which is being called from React-Native:
when this line
JitsiMeet.call("XXXX");
is being called, it opens another screen and crash in android just after that.Here is my Manifest:
Here is my app level build.gradle:
Here is my project level build.gradle file:
I also made a sample application for android only using same jitsi-meet dependency for android and everything works well.
It has been 2 days I am trying to resolve this issue.
Any help will be appreciate!
The text was updated successfully, but these errors were encountered: