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

NoClassDefFoundError: Failed resolution of: Lcom/google/android/exoplayer2/ExoPlayerFactory; #11

Open
pushpender100 opened this issue Apr 8, 2022 · 4 comments

Comments

@pushpender100
Copy link

Here is code.

var streamImage = await ExportVideoFrame.exportImagesFromFile(
tempVideo, Duration(seconds: 1), 0);

@ArturAntin
Copy link

Same problem.
It only happens on android devices and it has something to do with the media info plugin used in the package.

this is the full error message:
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/exoplayer2/ExoPlayerFactory; at asia.ivity.mediainfo.MediaInfoPlugin.ensureExoPlayer(MediaInfoPlugin.java:365) at asia.ivity.mediainfo.MediaInfoPlugin.handleMediaInfoExoPlayer(MediaInfoPlugin.java:176) at asia.ivity.mediainfo.MediaInfoPlugin.lambda$handleMediaInfo$0$MediaInfoPlugin(MediaInfoPlugin.java:132) at asia.ivity.mediainfo.-$$Lambda$MediaInfoPlugin$FmgGTlALyNlnLFUldbmZd5v5ELM.run(Unknown Source:8) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:241) at android.app.ActivityThread.main(ActivityThread.java:7582) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:941) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.exoplayer2.ExoPlayerFactory" on path: DexPathList[[zip file "/data/app/com.example.ml_test-NHOgUpUdvcFcZjPMVstjeg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.ml_test-NHOgUpUdvcFcZjPMVstjeg==/lib/arm64, /data/app/com.example.ml_test-NHOgUpUdvcFcZjPMVstjeg==/base.apk!/lib/arm64-v8a, /system/lib64, /system/product/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312)

@navin-zignuts
Copy link

Hello I am facing the same issue and not able to find the solution, as it's only stop working in android app, as iOS is working fine with the same implementation

Any work round for this ?

@isaactinghong
Copy link

facing the same issue too!

@isaactinghong
Copy link

my workaround is copy the whole logic and use something other than media_info to determine the video length

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

4 participants