mayurpitroda96 / easy_audio_trimmer

This is a Flutter package that allows you to easily trim audio files within your Flutter app.
MIT License
12 stars 29 forks source link

Incompatibilty with ffmpeg_kit_flutter_full #4

Closed triay0 closed 11 months ago

triay0 commented 1 year ago

I need ffmpeg_kit_flutter_full: 5.1.0 to compress audio but it throws the following error. With ffmpeg_kit_flutter forks fine.

Thank you

` Execution failed for task ':app:checkDebugDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable Duplicate class com.arthenica.ffmpegkit.Abi found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.AbiDetect found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.AbstractSession found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.AsyncFFmpegExecuteTask found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.AsyncFFprobeExecuteTask found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.AsyncGetMediaInformationTask found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.BuildConfig found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.CameraSupport found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.Chapter found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.FFmpegKit found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.FFmpegKitConfig found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.FFmpegKitConfig$1 found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.FFmpegKitConfig$2 found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.FFmpegKitConfig$SAFProtocolUrl found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.FFmpegSession found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.FFmpegSessionCompleteCallback found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.FFprobeKit found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.FFprobeSession found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.FFprobeSessionCompleteCallback found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.Level found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.Log found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.LogCallback found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.LogRedirectionStrategy found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.MediaInformation found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.MediaInformationJsonParser found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.MediaInformationSession found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.MediaInformationSessionCompleteCallback found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.NativeLoader found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.Packages found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.ReturnCode found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.Session found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.SessionState found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.Signal found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.Statistics found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.StatisticsCallback found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1) Duplicate class com.arthenica.ffmpegkit.StreamInformation found in modules jetified-ffmpeg-kit-full-5.1-runtime (com.arthenica:ffmpeg-kit-full:5.1) and jetified-ffmpeg-kit-https-5.1-runtime (com.arthenica:ffmpeg-kit-https:5.1)

 Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.

`

anantmann9057 commented 1 year ago

Hey there, I faced similar issue with video trimmer, if you dont have any specific dependency on this package try this one ffmpeg_kit_flutter: any , it works the same way but is not giving any duplicity errors to me.

mayurpitroda96 commented 11 months ago

fixed use latest version easy_audio_trimmer: ^1.0.2+4