video_trimmer icon indicating copy to clipboard operation
video_trimmer copied to clipboard

Execution failed for task ':app:checkDebugDuplicateClasses'.

Open dannycortesv opened this issue 2 years ago • 6 comments

Hi i'm using also ffmpeg_kit_flutter_full_gpl: ^4.5.1-LTS this cause duplicate classes failure. How can we change the package of ffmpeg plugins?

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

dannycortesv avatar Mar 10 '22 15:03 dannycortesv

Any update?

felipeemidio avatar Mar 28 '22 22:03 felipeemidio

@felipeemidio Make sure to use the same ffmpeg package on all puglins you use

dannycortesv avatar Mar 28 '22 22:03 dannycortesv

Please help on this facing same issue.

wolfwithflames avatar Apr 10 '22 19:04 wolfwithflames

In your pubspec.yaml file, are you guys using both the ffmpeg_kit_flutter and the video_trimmer packages together?

sbis04 avatar Apr 23 '22 03:04 sbis04

Yes, @sbis04. My case is that I want to use the video_trimmer package and the ffmpeg_kit_flutter_https_gpl for video convertion (both on version 4.5.1-LTS).

felipeemidio avatar Apr 23 '22 04:04 felipeemidio

I'm not totally sure how this duplicate class error can be fixed, but this thread may help: https://stackoverflow.com/questions/56029393/why-im-getting-duplicate-class-when-running-my-android-project

sbis04 avatar Apr 23 '22 12:04 sbis04

Closing this issue. Please open a new issue if you want to discuss this further.

sbis04 avatar Oct 29 '22 15:10 sbis04