Smart Exception Dependency - maitrungduc1410/ffmpeg-kit GitHub Wiki
FFmpegKit
Android library depends on smart-exception library to print shorter stack traces.
-
If you install
ffmpeg-kit
frommavenCentral
thensmart-exception
dependency will be automatically added bygradle
. -
If you depend on
ffmpeg-kit
from a local path, then:a. You must add
implementation 'com.arthenica:smart-exception-java'
dependency to yourbuild.gradle
b. Alternatively, you can go to the Releases page, find the latest release, download the
smart-exception-common-a.b.c.jar
andsmart-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)