Jitsi-meet android issue

meet

#1

hi,

I want to use Jitsi-meet for android devices.

I have used dependency of jitsi meet for video and audio call in android studio ::: implementation(‘org.jitsi.react:jitsi-meet-sdk:+’) { transitive = true }

i’m added in September 18, its worked fine. but in December 18 suddenly its stop working. some of features are not found in this sdk.

First of all org.webrtc.VideoRenderer; not found

I am not able to figure out the proper way of running that code successfully.Can you please provide me some way to run it

Hemraj Kumawat (Android developer)
Email: hemraj.knollinfo@gamil.com
Contact: +91-9414040408


#2

Some changes have happened indeed. You can check the new instructions, as you probably need to set pro-guard rules.


#3

hi saghul,

First thanks for reply,
can you provide any refresh link where i found all instructions as you told


#4

This should help: https://github.com/jitsi/jitsi-meet/blob/master/android/README.md


#5

I’m already done the setup configuration. before December 18 its worked fine. but one day its stop suddenly. Mainly org.webrtc.VideoRenderer not found in this sdk now.


#6

You haven’t updated your dependencies. VideoRenderer is no longer used. How are you integrating the SDK: do you build it yourself or are you using our Maven artifacts?


#7
  1. This is the app build.gradle setup

defaultConfig {
ndk {
abiFilters “armeabi-v7a”, “x86”
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

dependencies {
implementation(‘org.jitsi.react:jitsi-meet-sdk:+’) { transitive = true }
}

  1. This is the project build.gradle setup

allprojects {
repositories {
maven { url ‘https://github.com/jitsi/jitsi-maven-repository/raw/master/releases’ }

}

}

Above detail used in my project. before Video Renderer its worked. Now can you please suggest how should i configure


#8

Try cleaning: ./gradlew clean


#9

hey saghul,

thanks for all helps. actualy i dont have any knowledge of react native.

Now I have an issue with Glide in Jitsi

FATAL EXCEPTION: Thread-9599
Process: com.jitsitest, PID: 1685
java.lang.NoClassDefFoundError: com.bumptech.glide.load.resource.drawable.GlideDrawable
at libcore.reflect.InternalNames.getClass(InternalNames.java:55)
at java.lang.Class.getDexCacheType(Class.java:476)
at java.lang.reflect.AbstractMethod.getParameterTypes(AbstractMethod.java:166)
at java.lang.reflect.Method.getParameterTypes(Method.java:170)
at java.lang.Class.getDeclaredMethods(Class.java:673)
at com.facebook.react.uimanager.ViewManagersPropertyCache.extractPropSettersFromViewManagerClassDefinition(ViewManagersPropertyCache.java:429)
at com.facebook.react.uimanager.ViewManagersPropertyCache.getNativePropSettersForViewManagerClass(ViewManagersPropertyCache.java:323)
at com.facebook.react.uimanager.ViewManagerPropertyUpdater$FallbackViewManagerSetter.(ViewManagerPropertyUpdater.java:125)
at com.facebook.react.uimanager.ViewManagerPropertyUpdater$FallbackViewManagerSetter.(ViewManagerPropertyUpdater.java:119)
at com.facebook.react.uimanager.ViewManagerPropertyUpdater.findManagerSetter(ViewManagerPropertyUpdater.java:82)
at com.facebook.react.uimanager.ViewManagerPropertyUpdater.getNativeProps(ViewManagerPropertyUpdater.java:69)
at com.facebook.react.uimanager.ViewManager.getNativeProps(ViewManager.java:203)
at com.facebook.react.uimanager.UIManagerModuleConstantsHelper.createConstantsForViewManager(UIManagerModuleConstantsHelper.java:145)
at com.facebook.react.uimanager.UIManagerModuleConstantsHelper.createConstants(UIManagerModuleConstantsHelper.java:92)
at com.facebook.react.uimanager.UIManagerModule.createConstants(UIManagerModule.java:262)
at com.facebook.react.uimanager.UIManagerModule.(UIManagerModule.java:181)
at com.facebook.react.uimanager.UIManagerModule.(UIManagerModule.java:143)
at com.facebook.react.CoreModulesPackage.createUIManager(CoreModulesPackage.java:170)
at com.facebook.react.CoreModulesPackage.access$200(CoreModulesPackage.java:53)
at com.facebook.react.CoreModulesPackage$7.get(CoreModulesPackage.java:128)
at com.facebook.react.CoreModulesPackage$7.get(CoreModulesPackage.java:125)
at com.facebook.react.NativeModuleRegistryBuilder.processPackage(NativeModuleRegistryBuilder.java:61)
at com.facebook.react.ReactInstanceManager.processPackage(ReactInstanceManager.java:1173)
at com.facebook.react.ReactInstanceManager.processPackages(ReactInstanceManager.java:1143)
at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1085)
at com.facebook.react.ReactInstanceManager.access$900(ReactInstanceManager.java:117)
at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:916)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.ClassNotFoundException: Didn’t find class “com.bumptech.glide.load.resource.drawable.GlideDrawable” on path: DexPathList[[zip file “/data/app/com.jitsitest-2/base.apk”],nativeLibraryDirectories=[/data/app/com.jitsitest-2/lib/arm, /data/app/com.jitsitest-2/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at libcore.reflect.InternalNames.getClass(InternalNames.java:53)
at java.lang.Class.getDexCacheType(Class.java:476)
at java.lang.reflect.AbstractMethod.getParameterTypes(AbstractMethod.java:166)
at java.lang.reflect.Method.getParameterTypes(Method.java:170)
at java.lang.Class.getDeclaredMethods(Class.java:673)
at com.facebook.react.uimanager.ViewManagersPropertyCache.extractPropSettersFromViewManagerClassDefinition(ViewManagersPropertyCache.java:429)
at com.facebook.react.uimanager.ViewManagersPropertyCache.getNativePropSettersForViewManagerClass(ViewManagersPropertyCache.java:323)
at com.facebook.react.uimanager.ViewManagerPropertyUpdater$FallbackViewManagerSetter.(ViewManagerPropertyUpdater.java:125)
at com.facebook.react.uimanager.ViewManagerPropertyUpdater$FallbackViewManagerSetter.(ViewManagerPropertyUpdater.java:119)
at com.facebook.react.uimanager.ViewManagerPropertyUpdater.findManagerSetter(ViewManagerPropertyUpdater.java:82)
at com.facebook.react.uimanager.ViewManagerPropertyUpdater.getNativeProps(ViewManagerPropertyUpdater.java:69)
at com.facebook.react.uimanager.ViewManager.getNativeProps(ViewManager.java:203)
at com.facebook.react.uimanager.UIManagerModuleConstantsHelper.createConstantsForViewManager(UIManagerModuleConstantsHelper.java:145)
at com.facebook.react.uimanager.UIManagerModuleConstantsHelper.createConstants(UIManagerModuleConstantsHelper.java:92)
at com.facebook.react.uimanager.UIManagerModule.createConstants(UIManagerModule.java:262)
at com.facebook.react.uimanager.UIManagerModule.(UIManagerModule.java:181)
at com.facebook.react.uimanager.UIManagerModule.(UIManagerModule.java:143)
at com.facebook.react.CoreModulesPackage.createUIManager(CoreModulesPackage.java:170)
at com.facebook.react.CoreModulesPackage.access$200(CoreModulesPackage.java:53)
at com.facebook.react.CoreModulesPackage$7.get(CoreModulesPackage.java:128)
at com.facebook.react.CoreModulesPackage$7.get(CoreModulesPackage.java:125)
at com.facebook.react.NativeModuleRegistryBuilder.processPackage(NativeModuleRegistryBuilder.java:61)
at com.facebook.react.ReactInstanceManager.processPackage(ReactInstanceManager.java:1173)
at com.facebook.react.ReactInstanceManager.processPackages(ReactInstanceManager.java:1143)
at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1085)
at com.facebook.react.ReactInstanceManager.access$900(ReactInstanceManager.java:117)
at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:916)
at java.lang.Thread.run(Thread.java:818)
Suppressed: java.lang.ClassNotFoundException: com.bumptech.glide.load.resource.drawable.GlideDrawable
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
… 29 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available


#10

Didn’t you set pro-guard rules on your project? Did you add the ones we need? (It’s likes on the Android README).


#11

Hello, I’m trying to integrate Jitsi-meet in an Android project and I’m facing the same problem.
java.lang.ClassNotFoundException: Didn’t find class “com.bumptech.glide.load.resource.drawable.GlideDrawable”

I pasted ProGuard rules from Jitsi-meet Android project.
I’ve added Glide dependencies as follows:
implementation(“com.github.bumptech.glide:glide:4.7.1”) {
exclude group: “com.android.support”, module: “glide”
}
implementation(“com.github.bumptech.glide:annotations:4.7.1”) {
exclude group: “com.android.support”, module: “annotations”
}
annotationProcessor “com.github.bumptech.glide:compiler:4.7.1”

I set Glide version to 4.7.1 as it’s on Jitsi-meet Android project so I don’t understand why am I still having this problem.

There’s one thing I don’t understand. If the SDK is using Glide’s 4.7.1 version, why is it using GlideDrawable? This class was removed from Glide in 4.0.0 version and should no longer be used.

Could you please lend me some help with this?

Thanks in advance.


#12

Have you compiled the SDK yourself or are you using the Maven artifacts? If it’s the latter, can you try compiling the SDK components yourself?


#13

I added the dependency to my build.gradle file.
implementation (‘org.jitsi.react:jitsi-meet-sdk:+’) { transitive = true }
Is there a way to solve or avoid this problem without compiling the SDK? I don’t have much time to spend trying this product.


#14

Not at the moment, sorry. Compiling it is just a few commands away though: https://github.com/jitsi/jitsi-meet/tree/master/android#build-and-use-your-own-sdk-artifactsbinaries


#15

The Maven artifacts are now up to date. Please clean your project and try again: ./gradlew clean --refresh-dependencies