Skip to content
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

Crashing on Android 8 - java.lang.NoSuchMethodError #541

Open
Harshal624 opened this issue Dec 6, 2023 · 4 comments
Open

Crashing on Android 8 - java.lang.NoSuchMethodError #541

Harshal624 opened this issue Dec 6, 2023 · 4 comments

Comments

@Harshal624
Copy link

Device: Moto G Plus
Android: 8.1.0

SDK version: 2.8.3

Project gradle tools version: 4.2.2

Stack trace:
java.lang.NoSuchMethodError: No virtual method position(I)Ljava/nio/FloatBuffer; in class Ljava/nio/FloatBuffer; or its super classes (declaration of 'java.nio.FloatBuffer' appears in /system/framework/core-oj.jar)
at org.webrtc.GlUtil.createFloatBuffer(GlUtil.java:47)
at org.webrtc.GlGenericDrawer.(GlGenericDrawer.java:75)
at org.webrtc.YuvConverter.(YuvConverter.java:111)
at org.webrtc.YuvConverter.(YuvConverter.java:118)
at org.webrtc.SurfaceTextureHelper.create(SurfaceTextureHelper.java:92)
at live.hms.video.media.capturers.HMSCameraCapturer.(HMSCameraCapturer.kt:48)
at live.hms.video.media.streams.HMSStreamFactory.makeLocalVideoCapturer(HMSStreamFactory.kt:75)
at live.hms.video.transport.HMSTransport.getLocalTrackByType(HMSTransport.kt:972)
at live.hms.video.sdk.SDKDelegate.initLocalTracks(SDKDelegate.kt:790)
at live.hms.video.sdk.SDKDelegate.getLocalTracksByRoleAndApplySettings(SDKDelegate.kt:716)
at live.hms.video.sdk.SDKDelegate.access$getLocalTracksByRoleAndApplySettings(SDKDelegate.kt:55)
at live.hms.video.sdk.SDKDelegate$onPolicyChangeHandled$1.invokeSuspend(SDKDelegate.kt:488)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)

@AniketSK
Copy link
Contributor

AniketSK commented Dec 8, 2023

hi @Harshal624 what version of gradle are you using?

@Harshal624
Copy link
Author

hi @Harshal624 what version of gradle are you using?

distributionUrl=https://services.gradle.org/distributions/gradle-7.5-all.zip

@AniketSK
Copy link
Contributor

Have you set the following values in your app level build.grade?
compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 }
jatecl/react-native-webrtc@e35a1c8

@AniketSK
Copy link
Contributor

@Harshal624 this may help as it's a problem with lower levels of java and gradle.

Have you set the following values in your app level build.grade? compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } jatecl/react-native-webrtc@e35a1c8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants