You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2022-02-25 15:30:26.103 32073-32073/com.levelx.admin E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.levelx.admin, PID: 32073
java.lang.NoSuchMethodError: No static method getNetworkType(Landroid/content/Context;)I in class Lcom/google/android/exoplayer2/util/Util; or its super classes (declaration of 'com.google.android.exoplayer2.util.Util' appears in /data/app/~~L_MC3lYv70hKbegbb7nL9w==/com.levelx.admin-Ap8VRv30f8fHLx7y1mmokg==/base.apk!classes13.dex)
at kohii.v1.core.Master.(Master.kt:155)
at kohii.v1.core.Master.(Master.kt:69)
at kohii.v1.core.Master$Companion.get(Master.kt:84)
at kohii.v1.exoplayer.Kohii.(Kohii.kt:49)
at kohii.v1.exoplayer.Kohii.(Kohii.kt:43)
at kohii.v1.exoplayer.Kohii$Companion$capsule$1.invoke(Kohii.kt:53)
at kohii.v1.exoplayer.Kohii$Companion$capsule$1.invoke(Kohii.kt:51)
at kohii.v1.utils.Capsule.getInstance(Capsule.kt:44)
at kohii.v1.utils.Capsule.get(Capsule.kt:54)
at kohii.v1.exoplayer.Kohii$Companion.get(Kohii.kt:56)
at kohii.v1.exoplayer.Kohii.get(Unknown Source:2)
at com.levelx.admin.home.HomeFragment.onViewCreated(HomeFragment.java:312)
at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:3019)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:551)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:261)
at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:113)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1374)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2841)
at androidx.fragment.app.FragmentManager.dispatchViewCreated(FragmentManager.java:2777)
at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:3020)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:551)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:261)
at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:113)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1374)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2841)
at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:2784)
at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:262)
at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:478)
at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:246)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1485)
at android.app.Activity.performStart(Activity.java:8143)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3780)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2319)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:257)
at android.app.ActivityThread.main(ActivityThread.java:8218)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:626)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1016)
The text was updated successfully, but these errors were encountered:
@umer7267 Usually this happens when you use a different version of ExoPlayer. The latest version of Kohii uses ExoPlayer 2.11.8, the 1.3.0 snapshot uses 2.14.0. If you need a newer ExoPlayer version, you need to wait (sorry I'm working on a big update and it takes a lot of time).
@eneim yeah, I understand, you already did a marvelous job, I am using the same version as suggested in the documentation. Check this out:
// Add these to app level build.gradle (or to module that will use Kohii)
implementation "im.ene.kohii:kohii-core:1.2.0.2011008" // core library
implementation "im.ene.kohii:kohii-exoplayer:1.2.0.2011008" // default support for ExoPlayer
implementation "com.google.android.exoplayer:exoplayer:2.11.8" // required ExoPlayer implementation.
The app is crashing on initializing Kohii library in fragment Java:
Full logcat:
2022-02-25 15:30:26.103 32073-32073/com.levelx.admin E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.levelx.admin, PID: 32073
java.lang.NoSuchMethodError: No static method getNetworkType(Landroid/content/Context;)I in class Lcom/google/android/exoplayer2/util/Util; or its super classes (declaration of 'com.google.android.exoplayer2.util.Util' appears in /data/app/~~L_MC3lYv70hKbegbb7nL9w==/com.levelx.admin-Ap8VRv30f8fHLx7y1mmokg==/base.apk!classes13.dex)
at kohii.v1.core.Master.(Master.kt:155)
at kohii.v1.core.Master.(Master.kt:69)
at kohii.v1.core.Master$Companion.get(Master.kt:84)
at kohii.v1.exoplayer.Kohii.(Kohii.kt:49)
at kohii.v1.exoplayer.Kohii.(Kohii.kt:43)
at kohii.v1.exoplayer.Kohii$Companion$capsule$1.invoke(Kohii.kt:53)
at kohii.v1.exoplayer.Kohii$Companion$capsule$1.invoke(Kohii.kt:51)
at kohii.v1.utils.Capsule.getInstance(Capsule.kt:44)
at kohii.v1.utils.Capsule.get(Capsule.kt:54)
at kohii.v1.exoplayer.Kohii$Companion.get(Kohii.kt:56)
at kohii.v1.exoplayer.Kohii.get(Unknown Source:2)
at com.levelx.admin.home.HomeFragment.onViewCreated(HomeFragment.java:312)
at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:3019)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:551)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:261)
at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:113)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1374)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2841)
at androidx.fragment.app.FragmentManager.dispatchViewCreated(FragmentManager.java:2777)
at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:3020)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:551)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:261)
at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:113)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1374)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2841)
at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:2784)
at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:262)
at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:478)
at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:246)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1485)
at android.app.Activity.performStart(Activity.java:8143)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3780)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2319)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:257)
at android.app.ActivityThread.main(ActivityThread.java:8218)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:626)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1016)
The text was updated successfully, but these errors were encountered: