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

Flutter Duplicate class #964

Open
Ahmed20Salah opened this issue Apr 17, 2024 · 5 comments
Open

Flutter Duplicate class #964

Ahmed20Salah opened this issue Apr 17, 2024 · 5 comments
Labels
flutter Affect flutter platform not-reproducible v6.0

Comments

@Ahmed20Salah
Copy link

Description
error trying to build android/ios from all full packages about duplicate class
Expected behavior
to build like the "ffmpeg_kit_flutter" package

Current behavior
error in the building phase

To Reproduce
install the latest version from "ffmpeg_kit_flutter_full:6.0.3" android and it will fail with following error

Screenshots
If applicable, add screenshots to help explain your problem.

Logs
Duplicate class com.arthenica.ffmpegkit.StatisticsCallback found in the following modules: jetified-ffmpeg-kit-full-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-full-gpl:5.1), jetified-ffmpeg-kit-https-6.0-2-runtime (com.arthenica:ffmpeg-kit-https:6.0-2) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)
Duplicate class com.arthenica.ffmpegkit.StreamInformation found in the following modules: jetified-ffmpeg-kit-full-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-full-gpl:5.1), jetified-ffmpeg-kit-https-6.0-2-runtime (com.arthenica:ffmpeg-kit-https:6.0-2) and jetified-ffmpeg-kit-min-gpl-5.1-runtime (com.arthenica:ffmpeg-kit-min-gpl:5.1)

Environment

  • Platform: Flutter

  • Architecture: arm-v7a, arm-v7a-neon, arm64-v8a, x86, x86_64, armv7, armv7s, arm64, arm64-mac-catalyst, arm64-simulator, arm64e, i386, x86-64, x86-64-mac-catalyst

  • Version: v6.0.3

  • Source branch: main, development

  • Android Studio version: 4.0

  • Android NDK version: r25b

  • flutter doctor:
    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel stable, 3.19.5, on macOS 14.4.1 23E224 darwin-arm64, locale en-EG)
    [!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ✗ cmdline-tools component is missing
    Run path/to/sdkmanager --install "cmdline-tools;latest"
    See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
    Run flutter doctor --android-licenses to accept the SDK licenses.
    See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
    [✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    [✓] Chrome - develop for the web
    [✓] Android Studio (version 2023.1)
    [✓] VS Code (version 1.88.1)
    [✓] Connected device (4 available)
    [✓] Network resources

Other
Add any other context about the problem here.

@tanersener tanersener added not-reproducible flutter Affect flutter platform v6.0 labels Apr 17, 2024
@tanersener
Copy link
Collaborator

tanersener commented Apr 17, 2024

We can't reproduce this issue.

Logs list two ffmpeg-kit packages. It must be investigated why.

ffmpeg-kit-https
ffmpeg-kit-full-gpl

@Ahmed20Salah
Copy link
Author

it works really fine with basic ffmpeg_kit_flutter
however any other version ffmpeg_kit_flutter_video,gpl,full
all crash with the same error

@basav22
Copy link

basav22 commented Apr 23, 2024

I am facing same issue. Can you help ?

@basav22
Copy link

basav22 commented Apr 24, 2024

Issue resolved. My case was some other dependency was also having transitive dependency of ffmpeg-kit which was causing this duplicate class issue. I removed that other dependency and it started working 👍

@AryanGupta2002
Copy link

How Did you find that dependency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flutter Affect flutter platform not-reproducible v6.0
Projects
None yet
Development

No branches or pull requests

4 participants