Skip to content

Smart Exception Dependency

Taner Sener edited this page Sep 16, 2023 · 2 revisions

FFmpegKit Android library depends on smart-exception library to print shorter stack traces.

  1. If you install ffmpeg-kit from mavenCentral then smart-exception dependency will be automatically added by gradle.

  2. If you depend on ffmpeg-kit from a local path, then:

    a. You must add implementation 'com.arthenica:smart-exception-java' dependency to your build.gradle

    b. Alternatively, you can go to the Releases page, find the latest release, download the smart-exception-common-a.b.c.jar and smart-exception-java-a.b.c.jar files. And, import both of these jars manually into your project as well.

If you don't add smart-exception dependency, ffmpeg-kit methods will fail with the following exception.

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/arthenica/smartexception/java/Exceptions;
at com.arthenica.ffmpegkit.FFmpegKitConfig.(FFmpegKitConfig.java:90)
Clone this wiki locally