Smart Exception Dependency - tanersener/ffmpeg-kit GitHub Wiki

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, your must manually import smart-exception as well. 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. Then import both of these jars into your project.

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

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