Skip to content

Conversation

@starteamx
Copy link

Description

Handle following build issue:
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkQaReleaseDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Duplicate class com.arthenica.smartexception.AbstractExceptions found in modules smart-exception-common-0.2.1.jar -> smart-exception-common-0.2.1 (com.arthenica:smart-exception-common:0.2.1) and smart-exception-common-0.2.1.jar -> smart-exception-common-0.2.1 (smart-exception-common-0.2.1.jar)
Duplicate class com.arthenica.smartexception.ClassLoader found in modules smart-exception-common-0.2.1.jar -> smart-exception-common-0.2.1 (com.arthenica:smart-exception-common:0.2.1) and smart-exception-common-0.2.1.jar -> smart-exception-common-0.2.1 (smart-exception-common-0.2.1.jar)
Duplicate class com.arthenica.smartexception.PackageLoader found in modules smart-exception-common-0.2.1.jar -> smart-exception-common-0.2.1 (com.arthenica:smart-exception-common:0.2.1) and smart-exception-common-0.2.1.jar -> smart-exception-common-0.2.1 (smart-exception-common-0.2.1.jar)
Duplicate class com.arthenica.smartexception.StackTraceElementSerializer found in modules smart-exception-common-0.2.1.jar -> smart-exception-common-0.2.1 (com.arthenica:smart-exception-common:0.2.1) and smart-exception-common-0.2.1.jar -> smart-exception-common-0.2.1 (smart-exception-common-0.2.1.jar)
Duplicate class com.arthenica.smartexception.StackTraceElementWrapper found in modules smart-exception-common-0.2.1.jar -> smart-exception-common-0.2.1 (com.arthenica:smart-exception-common:0.2.1) and smart-exception-common-0.2.1.jar -> smart-exception-common-0.2.1 (smart-exception-common-0.2.1.jar)
Duplicate class com.arthenica.smartexception.ThrowableWrapper found in modules smart-exception-common-0.2.1.jar -> smart-exception-common-0.2.1 (com.arthenica:smart-exception-common:0.2.1) and smart-exception-common-0.2.1.jar -> smart-exception-common-0.2.1 (smart-exception-common-0.2.1.jar)
Duplicate class com.arthenica.smartexception.java.Exceptions found in modules smart-exception-java-0.2.1.jar -> smart-exception-java-0.2.1 (com.arthenica:smart-exception-java:0.2.1) and smart-exception-java-0.2.1.jar -> smart-exception-java-0.2.1 (smart-exception-java-0.2.1.jar)
Duplicate class com.arthenica.smartexception.java.JavaClassLoader found in modules smart-exception-java-0.2.1.jar -> smart-exception-java-0.2.1 (com.arthenica:smart-exception-java:0.2.1) and smart-exception-java-0.2.1.jar -> smart-exception-java-0.2.1 (smart-exception-java-0.2.1.jar)
Duplicate class com.arthenica.smartexception.java.JavaPackageLoader found in modules smart-exception-java-0.2.1.jar -> smart-exception-java-0.2.1 (com.arthenica:smart-exception-java:0.2.1) and smart-exception-java-0.2.1.jar -> smart-exception-java-0.2.1 (smart-exception-java-0.2.1.jar)
Duplicate class com.arthenica.smartexception.java.JavaStackTraceElementSerializer found in modules smart-exception-java-0.2.1.jar -> smart-exception-java-0.2.1 (com.arthenica:smart-exception-java:0.2.1) and smart-exception-java-0.2.1.jar -> smart-exception-java-0.2.1 (smart-exception-java-0.2.1.jar)

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

Type of Change

  • Bug fix

Checks

  • Changes support all platforms (Android, iOS, Linux, macOS, tvOS)
  • Breaks existing functionality
  • Implementation is completed, not half-done
  • Is there another PR already created for this feature/bug fix

Tests

How are these changes verified? Please provide test instructions.
Also list any relevant details about your test configuration.

carl-designlibro and others added 6 commits March 18, 2025 10:53
…ocally to solve compilation problems.update podspec
…ocally to solve compilation problems.add framework files.
Handle the following build issues:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ffmpeg_kit_flutter:bundleReleaseLocalLintAar'.
> Error while evaluating property 'hasLocalAarDeps' of task ':ffmpeg_kit_flutter:bundleReleaseLocalLintAar'.
   > Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :ffmpeg_kit_flutter project caused this error: /Users/admin/.pub-cache/git/ffmpeg-kit-ff41066ee575d6eb9749ff943a03d845e51ca39a/flutter/flutter/android/libs/ffmpeg-kit-https-6.0-2.aar
@devloic
Copy link

devloic commented Jun 20, 2025

new flutter package that worked for me : https://pub.dev/packages/ffmpeg_kit_flutter_new

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

Successfully merging this pull request may close these issues.

3 participants