Ich kann keine funktionierende Version von webrtc für meine Kotlin-App findenAndroid

Forum für diejenigen, die für Android programmieren
Anonymous
 Ich kann keine funktionierende Version von webrtc für meine Kotlin-App finden

Post by Anonymous »

Ich möchte Web-RTC zu meinem Kotlin-Projekt hinzufügen, aber wenn ich es hinzufüge, habe ich dieses Problem und wenn ich einen AI frage, sagen sie, die Implementierung zu ändern, entweder existiert sie nicht mehr oder derselbe Fehler tritt erneut auf (leider ist Englisch nicht meine Muttersprache). Ich brauche bitte Hilfe

Code: Select all

implementation("io.github.webrtc-sdk:android:125.6422.06.1")

Code: Select all

2025-11-27 22:11:43.302  6363-6363  ssine.test_call         com.yassine.test_call                E  No implementation found for long org.webrtc.SoftwareVideoDecoderFactory.nativeCreateFactory() (tried Java_org_webrtc_SoftwareVideoDecoderFactory_nativeCreateFactory and Java_org_webrtc_SoftwareVideoDecoderFactory_nativeCreateFactory__) - is the library loaded, e.g.  System.loadLibrary?
2025-11-27 22:11:43.324  6363-6363  AndroidRuntime          com.yassine.test_call                E  FATAL EXCEPTION: main
Process: com.yassine.test_call, PID: 6363
java.lang.RuntimeException:  C a n n o t   c r e a t e   a n   i n s t a n c e   o f   c l a s s   c o m . y a s s i n e . t e s t _ c a l l . C a m e r a V i e w M o d e l < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . l i f e c y c l e . V i e w M o d e l P r o v i d e r $ A n d r o i d V i e w M o d e l F a c t o r y . c r e a t e ( V i e w M o d e l P r o v i d e r . a n d r o i d . k t : 3 0 3 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . l i f e c y c l e . V i e w M o d e l P r o v i d e r $ A n d r o i d V i e w M o d e l F a c t o r y . c r e a t e ( V i e w M o d e l P r o v i d e r . a n d r o i d . k t : 2 8 7 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . l i f e c y c l e . V i e w M o d e l P r o v i d e r $ A n d r o i d V i e w M o d e l F a c t o r y . c r e a t e ( V i e w M o d e l P r o v i d e r . a n d r o i d . k t : 2 6 1 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . l i f e c y c l e . S a v e d S t a t e V i e w M o d e l F a c t o r y . c r e a t e ( S a v e d S t a t e V i e w M o d e l F a c t o r y . a n d r o i d . k t : 1 4 2 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . l i f e c y c l e . S a v e d S t a t e V i e w M o d e l F a c t o r y . c r e a t e ( S a v e d S t a t e V i e w M o d e l F a c t o r y . a n d r o i d . k t : 1 1 2 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . l i f e c y c l e . v i e w m o d e l . i n t e r n a l . V i e w M o d e l P r o v i d e r I m p l _ a n d r o i d K t . c r e a t e V i e w M o d e l ( V i e w M o d e l P r o v i d e r I m p l . a n d r o i d . k t : 3 5 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . l i f e c y c l e . v i e w m o d e l . i n t e r n a l . V i e w M o d e l P r o v i d e r I m p l . g e t V i e w M o d e l $ l i f e c y c l e _ v i e w m o d e l ( V i e w M o d e l P r o v i d e r I m p l . k t : 5 9 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . l i f e c y c l e . v i e w m o d e l . i n t e r n a l . V i e w M o d e l P r o v i d e r I m p l . g e t V i e w M o d e l $ l i f e c y c l e _ v i e w m o d e l $ d e f a u l t ( V i e w M o d e l P r o v i d e r I m p l . k t : 4 3 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . l i f e c y c l e . V i e w M o d e l P r o v i d e r . g e t ( V i e w M o d e l P r o v i d e r . a n d r o i d . k t : 9 0 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . l i f e c y c l e . V i e w M o d e l L a z y . g e t V a l u e ( V i e w M o d e l L a z y . k t : 5 2 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . l i f e c y c l e . V i e w M o d e l L a z y . g e t V a l u e ( V i e w M o d e l L a z y . k t : 3 5 ) < b r   / >                                                                                                                                                                                                                 a t   c o m . y a s s i n e . t e s t _ c a l l . M a i n A c t i v i t y . g e t V m ( M a i n A c t i v i t y . k t : 1 9 ) < b r   / >                                                                                                                                                                                                                 a t   c o m . y a s s i n e . t e s t _ c a l l . M a i n A c t i v i t y . a c c e s s $ g e t V m ( M a i n A c t i v i t y . k t : 1 7 ) < b r   / >                                                                                                                                                                                                                 a t   c o m . y a s s i n e . t e s t _ c a l l . M a i n A c t i v i t y $ o n C r e a t e $ 1 . i n v o k e S u s p e n d ( M a i n A c t i v i t y . k t : 2 5 ) < b r   / >                                                                                                                                                                                  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:359)
at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:26)
at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:358)
at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:124)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:52)
at kotlinx.coroutines.BuildersKt.launch(Unknown Source:1)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:43)
at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source:1)
at com.yassine.test_call.MainActivity.onCreate(MainActivity.kt:25)
at android.app.Activity.performCreate(Activity.java:9155)
at android.app.Activity.performCreate(Activity.java:9133)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1521)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4262)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4467)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:222)
at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:133)
at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:103)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:80)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2823)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loopOnce(Looper.java:248)
at android.os.Looper.loop(Looper.java:338)
at android.app.ActivityThread.main(ActivityThread.java:9067)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:932)
Suppressed:  kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@ffdc12e, Dispatchers.Main.immediate]
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create(ViewModelProvider.android.kt:295)
... 40 more
2025-11-27 22:11:43.325  6363-6363  AndroidRuntime          com.yassine.test_call                E  Caused by: java.lang.UnsatisfiedLinkError: No implementation found for long org.webrtc.SoftwareVideoDecoderFactory.nativeCreateFactory() (tried Java_org_webrtc_SoftwareVideoDecoderFactory_nativeCreateFactory and Java_org_webrtc_SoftwareVideoDecoderFactory_nativeCreateFactory__) - is the library loaded, e.g. System.loadLibrary?
at org.webrtc.SoftwareVideoDecoderFactory.nativeCreateFactory(Native Method)
at org.webrtc.SoftwareVideoDecoderFactory.(SoftwareVideoDecoderFactory.java:22)
at org.webrtc.DefaultVideoDecoderFactory.(DefaultVideoDecoderFactory.java:22)
at com.yassine.test_call.CameraViewModel.startCameraInternal(CameraViewModel.kt:75)
at com.yassine.test_call.CameraViewModel.(CameraViewModel.kt:33)
... 43 more
2025-11-27 22:11:43.341  6363-6363  Process                 com.yassine.test_call                I  Sending signal. PID: 6363 SIG: 9
---------------------------- PROCESS ENDED (6363) for package com.yassine.test_call ----------------------------

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post