Skip to content Skip to sidebar Skip to footer

Add .so Files To Cordova Plugin

I have developed a Cordova Plugin for my Ionic app, which throws the following error when accessed: java.lang.UnstatisfiedLinkError: dalvik.system.PathClassLoader [DexPathList

Solution 1:

I am able to resolve this issue by renaming libs to jniLibs.

Change

<resource-file src="src/android/libs/armeabi/libserial_port.so" target="libs/armeabi/libserial_port.so">

to

<resource-file src="src/android/libs/armeabi/libserial_port.so" target="jniLibs/armeabi/libserial_port.so">

also read my answer with similar issue Unable to run Android app after updating to cordova android 7.0.0

Post a Comment for "Add .so Files To Cordova Plugin"