Skip to content

Smart Exception Dependency

Taner Sener edited this page Jul 15, 2026 · 1 revision

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

  1. If you use the local Maven repository created by the FFmpegKitNext build scripts, no additional smart-exception setup is required. The generated POM declares smart-exception-java as a transitive dependency, so Gradle adds it automatically

  2. If you add ffmpeg-kit-next.aar manually to your project, you must add the smart-exception dependency manually:

    implementation 'com.arthenica:smart-exception-java:0.2.1'

    Alternatively, 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 JAR files manually into your project.

If you don't add the smart-exception dependency when using the .aar manually, 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