I'm in the mid of developing an android application, which is to connect to SAP CRM system to fetch some data. I'm using JCO for the same. When I run it as standalone java application (i.e. not in android platform) I can successfully fetch data. But when I run the same as android application, I get the following error in log cat:
Caused by: java.lang.ExceptionInInitializerError: JCo initialization failed with java.lang.UnsatisfiedLinkError: Couldn't load sapjco3 from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.firstapp-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.firstapp-1, /system/lib]]]: findLibrary returned null
I have added the jco library in libs folder of my android project and tried several variations. The error persists.
Can someone please help ?
Regards,
Padma