flutter_export_video_frame icon indicating copy to clipboard operation
flutter_export_video_frame copied to clipboard

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

Open pushpender100 opened this issue 3 years ago • 4 comments

Here is code.

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

pushpender100 avatar Apr 08 '22 09:04 pushpender100

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)

ArturAntin avatar Jun 24 '22 07:06 ArturAntin

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 ?

navin-zignuts avatar Jan 25 '23 08:01 navin-zignuts

facing the same issue too!

isaactinghong avatar Apr 24 '23 18:04 isaactinghong

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

isaactinghong avatar Apr 24 '23 19:04 isaactinghong