jitsi / jitsi-meet-sdk-samples

Jitsi Meet mobile SDK examples (Android, iOS and React Native)
Apache License 2.0
277 stars 240 forks source link

Using the android sdk in a NativeModule in react native #61

Closed moficodes closed 3 years ago

moficodes commented 4 years ago

I know the jitse-meet has a react native codebase.

But that code base huge and I was hoping to integrate the android and ios sdk (the jitsi-meet-view) in my react native app using native modules.

https://github.com/moficodes/react-native-jitsi-demo

I added a screen before the screen where you would put your connection screen for android.

And when I press join the app just stops.

The error happens somewhere inside ExampleActivity JitsiMeetActivity.launch(this, text); call. I am not even getting any error message. The app just crashes.

Any insight on this is appreciated.

saghul commented 4 years ago

There should some trace on adb logcat

moficodes commented 4 years ago
07-03 14:14:33.594 12380 12380 E unknown:ReactNative: Got DOWN touch before receiving UP or CANCEL from last gesture
07-03 14:14:33.773 12380 12380 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@afa2168
07-03 14:14:33.905 12380 12380 D JITSI CLIENT: JITSI CLIENT: URL WORKED
07-03 14:14:33.908 12380 12380 D JITSI CLIENT: JITSI CLIENT: GOT TO END OF ON CREATE
07-03 14:14:34.004 12380 12429 D EGL_emulation: eglMakeCurrent: 0xf377e6e0: ver 3 0 (tinfo 0xf3789780)
07-03 14:14:35.045 12380 12380 I AssistStructure: Flattened final assist data: 1072 bytes, containing 1 windows, 5 views
07-03 14:14:45.485 12380 12380 D JITSI CLIENT: JITSI CLIENT: BUTTON CLICKED
07-03 14:14:45.485 12380 12380 D JITSI CLIENT: JITSI CLIENT: TEXT FOUND https://chat.moficodes.com/demo
07-03 14:14:45.485 12380 12380 D JITSI CLIENT: JITSI CLIENT: STARTING ACTIVITY
07-03 14:14:45.537 12380 12380 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@83351d0
07-03 14:14:45.589 12380 12380 D SoLoader: init exiting
07-03 14:14:45.597 12380 12380 D ReactNative: ReactInstanceManager.ctor()
07-03 14:14:45.597 12380 12380 D SoLoader: init exiting
07-03 14:14:45.607 12380 12380 D ReactNative: ReactInstanceManager.createReactContextInBackground()
07-03 14:14:45.607 12380 12380 D ReactNative: ReactInstanceManager.recreateReactContextInBackgroundInner()
07-03 14:14:45.607 12380 12380 D ReactNative: ReactInstanceManager.recreateReactContextInBackgroundFromBundleLoader()
07-03 14:14:45.607 12380 12380 D ReactNative: ReactInstanceManager.recreateReactContextInBackground()
07-03 14:14:45.607 12380 12380 D ReactNative: ReactInstanceManager.runCreateReactContextOnNewThread()
07-03 14:14:45.611 12380 12605 D SoLoader: About to load: libhermes.so
07-03 14:14:45.613 12380 12605 D SoLoader: libhermes.so found on /data/data/com.test/lib-main
07-03 14:14:45.617 12380 12605 D SoLoader: Loading lib dependencies: [libandroid.so, liblog.so, libz.so, libdl.so, libm.so, libc++_shared.so, libc.so]
07-03 14:14:45.617 12380 12605 D SoLoader: About to load: libz.so
07-03 14:14:45.618 12380 12605 D SoLoader: libz.so not found on /data/data/com.test/lib-main
07-03 14:14:45.618 12380 12605 D SoLoader: libz.so not found on /data/app/com.test-bxgknoXMEvzHfl5vevMdYQ==/lib/x86
07-03 14:14:45.618 12380 12605 D SoLoader: libz.so not found on /vendor/lib
07-03 14:14:45.618 12380 12605 D SoLoader: libz.so found on /system/lib
07-03 14:14:45.618 12380 12605 D SoLoader: libz.so loaded implicitly
07-03 14:14:45.618 12380 12605 D SoLoader: Loaded: libz.so
07-03 14:14:45.633 12380 12605 D SoLoader: Loaded: libhermes.so
07-03 14:14:45.633 12380 12605 D SoLoader: About to load: libhermes-executor-debug.so
07-03 14:14:45.633 12380 12605 D SoLoader: libhermes-executor-debug.so found on /data/data/com.test/lib-main
07-03 14:14:45.640 12380 12605 D SoLoader: Loading lib dependencies: [libhermes-inspector.so, libfb.so, libfbjni.so, libreactnativejni.so, libhermes.so, libjsinspector.so, libfolly_json.so, libglog.so, libc++_shared.so, liblog.so, libc.so, libm.so, libdl.so]
07-03 14:14:45.640 12380 12605 D SoLoader: About to load: libhermes-inspector.so
07-03 14:14:45.641 12380 12605 D SoLoader: libhermes-inspector.so found on /data/data/com.test/lib-main
07-03 14:14:45.647 12380 12605 D SoLoader: Loading lib dependencies: [libjsinspector.so, libfb.so, libfbjni.so, libfolly_futures.so, libhermes.so, libfolly_json.so, libglog.so, libc++_shared.so, liblog.so, libc.so, libm.so, libdl.so]
07-03 14:14:45.647 12380 12605 D SoLoader: About to load: libfolly_futures.so
07-03 14:14:45.647 12380 12605 D SoLoader: libfolly_futures.so found on /data/data/com.test/lib-main
07-03 14:14:45.614 12380 12380 W create_react_co: type=1400 audit(0.0:192): avc: granted { execute } for path="/data/data/com.test/lib-main/libhermes.so" dev="vdc" ino=30414 scontext=u:r:untrusted_app:s0:c137,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c137,c256,c512,c768 tclass=file app=com.test
07-03 14:14:45.653 12380 12605 D SoLoader: Loading lib dependencies: [libglog.so, libfolly_json.so, libc++_shared.so, libc.so, libm.so, libdl.so]
07-03 14:14:45.661 12380 12605 D SoLoader: Loaded: libfolly_futures.so
07-03 14:14:45.664 12380 12605 W System.err: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZTIN8facebook6hermes8debugger13EventObserverE" referenced by "/data/data/com.test/lib-main/libhermes-inspector.so"...
07-03 14:14:45.664 12380 12605 W System.err:    at java.lang.Runtime.load0(Runtime.java:938)
07-03 14:14:45.664 12380 12605 W System.err:    at java.lang.System.load(System.java:1631)
07-03 14:14:45.664 12380 12605 W System.err:    at com.facebook.soloader.SoLoader$1.load(SoLoader.java:395)
07-03 14:14:45.644 12380 12380 W create_react_co: type=1400 audit(0.0:193): avc: granted { execute } for path="/data/data/com.test/lib-main/libfolly_futures.so" dev="vdc" ino=30405 scontext=u:r:untrusted_app:s0:c137,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c137,c256,c512,c768 tclass=file app=com.test
07-03 14:14:45.665 12380 12605 W System.err:    at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:77)
07-03 14:14:45.665 12380 12605 W System.err:    at com.facebook.soloader.UnpackingSoSource.loadLibrary(UnpackingSoSource.java:458)
07-03 14:14:45.669 12380 12605 W System.err:    at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:766)
07-03 14:14:45.670 12380 12605 W System.err:    at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:673)
07-03 14:14:45.670 12380 12605 W System.err:    at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:621)
07-03 14:14:45.670 12380 12605 W System.err:    at com.facebook.soloader.DirectorySoSource.loadDependencies(DirectorySoSource.java:122)
07-03 14:14:45.670 12380 12605 W System.err:    at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:71)
07-03 14:14:45.670 12380 12605 W System.err:    at com.facebook.soloader.UnpackingSoSource.loadLibrary(UnpackingSoSource.java:458)
07-03 14:14:45.670 12380 12605 W System.err:    at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:766)
07-03 14:14:45.670 12380 12605 W System.err:    at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:673)
07-03 14:14:45.672 12380 12605 W System.err:    at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:611)
07-03 14:14:45.672 12380 12605 W System.err:    at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:559)
07-03 14:14:45.672 12380 12605 W System.err:    at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:22)
07-03 14:14:45.672 12380 12605 W System.err:    at com.facebook.hermes.reactexecutor.HermesExecutorFactory.create(HermesExecutorFactory.java:29)
07-03 14:14:45.673 12380 12605 W System.err:    at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:997)
07-03 14:14:45.673 12380 12605 W System.err:    at java.lang.Thread.run(Thread.java:919)
07-03 14:14:45.673 12380 12605 E SoLoader: couldn't find DSO to load: libhermes-inspector.so caused by: dlopen failed: cannot locate symbol "_ZTIN8facebook6hermes8debugger13EventObserverE" referenced by "/data/data/com.test/lib-main/libhermes-inspector.so"... result: 0
07-03 14:14:45.674 12380 12605 W System.err: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes-inspector.so caused by: dlopen failed: cannot locate symbol "_ZTIN8facebook6hermes8debugger13EventObserverE" referenced by "/data/data/com.test/lib-main/libhermes-inspector.so"... result: 0
07-03 14:14:45.674 12380 12605 W System.err:    at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:825)
07-03 14:14:45.674 12380 12605 W System.err:    at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:673)
07-03 14:14:45.674 12380 12605 W System.err:    at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:621)
07-03 14:14:45.674 12380 12605 W System.err:    at com.facebook.soloader.DirectorySoSource.loadDependencies(DirectorySoSource.java:122)
07-03 14:14:45.674 12380 12605 W System.err:    at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:71)
07-03 14:14:45.675 12380 12605 W System.err:    at com.facebook.soloader.UnpackingSoSource.loadLibrary(UnpackingSoSource.java:458)
07-03 14:14:45.675 12380 12605 W System.err:    at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:766)
07-03 14:14:45.675 12380 12605 W System.err:    at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:673)
07-03 14:14:45.675 12380 12605 W System.err:    at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:611)
07-03 14:14:45.675 12380 12605 W System.err:    at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:559)
07-03 14:14:45.675 12380 12605 W System.err:    at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:22)
07-03 14:14:45.675 12380 12605 W System.err:    at com.facebook.hermes.reactexecutor.HermesExecutorFactory.create(HermesExecutorFactory.java:29)
07-03 14:14:45.675 12380 12605 W System.err:    at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:997)
07-03 14:14:45.675 12380 12605 W System.err:    at java.lang.Thread.run(Thread.java:919)
07-03 14:14:45.675 12380 12605 E SoLoader: couldn't find DSO to load: libhermes-executor-debug.so caused by: couldn't find DSO to load: libhermes-inspector.so caused by: dlopen failed: cannot locate symbol "_ZTIN8facebook6hermes8debugger13EventObserverE" referenced by "/data/data/com.test/lib-main/libhermes-inspector.so"... result: 0 result: 0
07-03 14:14:45.676 12380 12605 D SoLoader: About to load: libhermes-executor-release.so
07-03 14:14:45.676 12380 12605 D SoLoader: libhermes-executor-release.so found on /data/data/com.test/lib-main
07-03 14:14:45.680 12380 12605 D SoLoader: Loading lib dependencies: [libfb.so, libfbjni.so, libreactnativejni.so, libhermes.so, libjsinspector.so, libfolly_json.so, libglog.so, libc++_shared.so, liblog.so, libc.so, libm.so, libdl.so]
07-03 14:14:45.690 12380 12605 D SoLoader: Loaded: libhermes-executor-release.so
07-03 14:14:45.696 12380 12605 D ReactNative: ReactInstanceManager.createReactContext()
07-03 14:14:45.654 12380 12380 W create_react_co: type=1400 audit(0.0:194): avc: granted { execute } for path="/data/data/com.test/lib-main/libhermes-inspector.so" dev="vdc" ino=30413 scontext=u:r:untrusted_app:s0:c137,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c137,c256,c512,c768 tclass=file app=com.test
07-03 14:14:45.674 12380 12380 W create_react_co: type=1400 audit(0.0:195): avc: granted { execute } for path="/data/data/com.test/lib-main/libhermes-executor-release.so" dev="vdc" ino=30412 scontext=u:r:untrusted_app:s0:c137,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c137,c256,c512,c768 tclass=file app=com.test
07-03 14:14:45.811 12380 12429 D EGL_emulation: eglMakeCurrent: 0xf377e6e0: ver 3 0 (tinfo 0xf3789780)
07-03 14:14:45.831 12380 12429 D EGL_emulation: eglMakeCurrent: 0xf377e6e0: ver 3 0 (tinfo 0xf3789780)
07-03 14:14:45.846 12380 12605 I org.webrtc.Logging: WebRtcAudioManagerExternal: Sample rate is set to 44100 Hz
07-03 14:14:45.847 12380 12605 I org.webrtc.Logging: WebRtcAudioManagerExternal: Sample rate is set to 44100 Hz
07-03 14:14:45.848 12380 12605 I org.webrtc.Logging: JavaAudioDeviceModule: createAudioDeviceModule
07-03 14:14:45.849 12380 12605 I org.webrtc.Logging: JavaAudioDeviceModule: HW NS will not be used.
07-03 14:14:45.849 12380 12605 I org.webrtc.Logging: JavaAudioDeviceModule: HW AEC will not be used.
07-03 14:14:45.854 12380 12605 I org.webrtc.Logging: WebRtcAudioEffectsExternal: ctor@[name=create_react_context, id=1243]
07-03 14:14:45.893 12380 12605 D ReactNative: Initializing React Xplat Bridge.
07-03 14:14:45.899 12380 12429 D EGL_emulation: eglMakeCurrent: 0xf377e6e0: ver 3 0 (tinfo 0xf3789780)
07-03 14:14:45.906 12380 12605 D ReactNative: Initializing React Xplat Bridge before initializeBridge
07-03 14:14:45.908 12380 12606 I org.webrtc.Logging: NativeLibrary: Loading native library: jingle_peerconnection_so
07-03 14:14:45.908 12380 12606 I org.webrtc.Logging: NativeLibrary: Loading library: jingle_peerconnection_so
--------- beginning of crash
07-03 14:14:45.909 12380 12608 F libc    : Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x76453331 in tid 12608 (mqt_js), pid 12380 (com.test)
07-03 14:14:46.023 12380 12606 I org.webrtc.Logging: PeerConnectionFactory: PeerConnectionFactory was initialized without an injected Loggable. Any existing Loggable will be deleted.
07-03 14:14:46.152 12380 12614 I org.webrtc.Logging: PeerConnectionFactory: onSignalingThreadReady
07-03 14:14:46.154 12380 12613 I org.webrtc.Logging: PeerConnectionFactory: onWorkerThreadReady
07-03 14:14:46.158 12380 12612 I org.webrtc.Logging: PeerConnectionFactory: onNetworkThreadReady
07-03 14:14:46.164 12380 12606 I CameraManagerGlobal: Connecting to camera service
07-03 14:14:46.184 12380 12606 D com.oney.WebRTCModule.WebRTCModule: Creating video capturer using Camera2 API.

@saghul This is the output of logcat from the moment I click on join.

masihur1989 commented 4 years ago

i am having the same issue as well. @moficodes have figured it out.

moficodes commented 4 years ago

Not yet. I dont know what this error is about actually. Hoping @saghul will get a chance to look at it.

amallo commented 4 years ago

@moficodes

The interesting part of your log is

couldn't find DSO to load: libhermes-inspector.so caused by: dlopen 

I had the same problem and if I remember I had to enable Hermes in order to run my react native app in debug (I feel that jitsi needs Hermes to work). With Hermes on the debug works well...!

but the release crash with this :) (using the master release )

2020-07-28 16:33:57.141 31222-31597/? E/ReactNativeJS: Invariant Violation: "App" has not been registered. This can happen if:
    * Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
    * A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.
2020-07-28 16:33:57.152 31222-31598/? E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
    Process: com.test, PID: 31222
    com.facebook.react.common.JavascriptException: Invariant Violation: "App" has not been registered. This can happen if:
    * Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
    * A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called., js engine: hermes, stack:
    anonymous@1:23771
    runApplication@1:388693
    value@1:31401
    anonymous@1:29936
    value@1:31000
    value@1:29894

        at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:79)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
        at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:151)
        at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
        at android.os.Handler.handleCallback(Handler.java:888)
        at android.os.Handler.dispatchMessage(Handler.java:100)
        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
        at android.os.Looper.loop(Looper.java:213)
        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
        at java.lang.Thread.run(Thread.java:929)

Hope it help

amallo commented 4 years ago

I finally fixed my last issue by updating my app's bundle file name to app.android.bundle which is different than the file index.android.bundle generated by jitsi, the two files MUST be different otherwise they will collide and jitsi won't find the Javascript side.

private final ReactNativeHost mReactNativeHost =
....
 @Nullable
        @Override
        protected String getBundleAssetName() {
          return "app.android.bundle";
        }
      };
rananajam1 commented 3 years ago

@amallo what else did you change? Can you tell the steps, because im also stuck at this very point?

rananajam1 commented 3 years ago

@moficodes did you fix this issue?

moficodes commented 3 years ago

I gave up and used the android client instead

rananajam1 commented 3 years ago

I was able to fix the issue lmk if you need help

MarinaAmy commented 3 years ago

Hello, I have the same worries, I've been going around in circles for several weeks because of hermes, I'm depressed: /

SoLoader: couldn't find DSO to load: libhermes-inspector.so caused by: dlopen failed: cannot locate symbol "_ZTIN8facebook6hermes8debugger13EventObserverE" referenced by "/data/data/com.test/lib-main/libhermes-inspector.so". .. result: 0 2020-11-03 11: 09: 53.512 16167-16270 / com.test E / SoLoader: couldn't find DSO to load: libhermes-executor-debug.so caused by: couldn't find DSO to load: libhermes-inspector .so caused by: dlopen failed: cannot locate symbol "_ZTIN8facebook6hermes8debugger13EventObserverE" referenced by "/data/data/com.test/lib-main/libhermes-inspector.so" ... result: 0 result: 0 2020-11-03 11: 09: 53.558 16167-16272 / com.test A / libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xffffffff in tid 16272 (mqt_js), pid 16167 (com.test )

Can somebody help me please ? (@rananajam1 ?)

rananajam1 commented 3 years ago

@Marinaarimany can you show your app:build.gradle?

MarinaAmy commented 3 years ago

@rananajam1

apply plugin: "com.android.application"

import com.android.build.OutputFile

/**

project.ext.react = [ entryFile: "index.android.js", enableHermes: false, // clean and rebuild if changing bundleInStaging: true, // Add this bundleInInternalTest: true, // Add this bundleInRelease: true ]

apply from: "../../node_modules/react-native/react.gradle"

/**

/**

/**

/**

android { compileSdkVersion rootProject.ext.compileSdkVersion

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

defaultConfig {
    applicationId "com.test"
    minSdkVersion rootProject.ext.minSdkVersion
    targetSdkVersion rootProject.ext.targetSdkVersion
    versionCode 1
    versionName "1.0"
    ndk {
        abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
    }
}
splits {
    abi {
        reset()
        enable enableSeparateBuildPerCPUArchitecture
        universalApk false  // If true, also generate a universal APK
        include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
    }
}
signingConfigs {
    debug {
        storeFile file('debug.keystore')
        storePassword 'android'
        keyAlias 'androiddebugkey'
        keyPassword 'android'
    }
}
buildTypes {
    debug {
        signingConfig signingConfigs.debug
    }
    release {
        // Caution! In production, you need to generate your own keystore file.
        // see https://reactnative.dev/docs/signed-apk-android.
        signingConfig signingConfigs.debug
        minifyEnabled enableProguardInReleaseBuilds
        proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
    }
}

// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
    variant.outputs.each { output ->
        // For each separate APK per architecture, set a unique version code as described here:
        // https://developer.android.com/studio/build/configure-apk-splits.html
        def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
        def abi = output.getFilter(OutputFile.ABI)
        if (abi != null) {  // null for the universal-debug, universal-release variants
            output.versionCodeOverride =
                    versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
        }

    }
}
packagingOptions {
    pickFirst '**/armeabi-v7a/libc++_shared.so'
    pickFirst '**/x86/libc++_shared.so'
    pickFirst '**/x86_64/libc++_shared.so'
    pickFirst '**/arm64-v8a/libc++_shared.so'
    pickFirst '**/libjsc.so'
}

}

dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) //noinspection GradleDynamicVersion implementation 'com.facebook.soloader:soloader:0.9.0+'

configurations.all {
    resolutionStrategy {
        force "com.facebook.soloader:soloader:0.8.2"
    }
}
implementation 'com.android.support:appcompat-v7:28.0.0'

implementation "com.facebook.react:react-native:+"  // From node_modules

implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
implementation(project(':react-native-jitsi-meet')) {
    //exclude group: 'com.facebook.react',module:'react-native-vector-icons'
    //exclude group: 'com.facebook.react',module:'react-native-community-async-storage'
    //exclude group: 'com.facebook',module:'hermes'
    transitive = true

}
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
  exclude group:'com.facebook.fbjni'
}

debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
    exclude group:'com.facebook.flipper'
    exclude group:'com.squareup.okhttp3', module:'okhttp'
}

debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
    exclude group:'com.facebook.flipper'
}

if (enableHermes) {
    def hermesPath = "../../node_modules/hermes-engine/android/";
    debugImplementation files(hermesPath + "hermes-debug.aar")
    releaseImplementation files(hermesPath + "hermes-release.aar")
} else {
    implementation jscFlavor
}

}

// Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { from configurations.compile into 'libs' }

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

MarinaAmy commented 3 years ago

@rananajam1 // Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript { ext { buildToolsVersion = "29.0.2" minSdkVersion = 23 compileSdkVersion = 29 targetSdkVersion = 29 } repositories { google() jcenter() } dependencies { classpath("com.android.tools.build:gradle:4.1.0") // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }

allprojects { repositories { mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android") } maven { // Android JSC is installed from npm url("$rootDir/../node_modules/jsc-android/dist") } maven { url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases" } google() jcenter() maven { url 'https://www.jitpack.io' } } }

JeffinJ commented 2 years ago

I was able to fix the issue lmk if you need help

HI, I am facing a similar issue. can you help

rananajam1 commented 2 years ago

@JeffinJ what exact problem are you facing?

JeffinJ commented 2 years ago

@JeffinJ what exact problem are you facing?

I used JitsiMeet SDK 5.0.2 in a native module for react-native: 0.68.2.

launching the meeting in an activity/screen using JitsiMeetActivity.launch(getReactApplicationContext(), jitsiOptions); Everything is working when I install the app using react-native run-android.

But when I build a release APK and install the APK on an emulator or device. The app just crashed when the meeting was launched.

rananajam1 commented 2 years ago

@JeffinJ please share the stacktrace