Android plugin JAR question


#1

Ive created a jar for my plugin which was working ok. Until I used a library import inside my jar called org.jcodec.api.android.SequenceEncoder

I now get this error from nativescript build

Error: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/jcodec/api/android/SequenceEncoder;

Didn’t find class “org.jcodec.api.android.SequenceEncoder” on path: DexPathList[[

How do I get my JAR to include this inside itself?

My build.gradle has these

dependencies {
compile fileTree(include: [’*.jar’], dir: ‘libs’)
testCompile 'junit:junit:4.12’
compile 'com.android.support:appcompat-v7:23.4.0’
compile 'org.jcodec:jcodec-android:0.1.9’
compile ‘com.android.support:design:23.1.1’
}

I am confused

Thanks


#2

I realised I needed to put the jcodec-android-0.1.9.jar into the plugin folder ie

pluginname\platforms\android\libs\jcodec-android-0.1.9.jar

beside my created Jar, now it works