When I import my own .jar library after importing Scichart .aar libraries(core and data) my own .jar library generates an error(Error: findLibrary returned null). How can I overcome that error.
- hamza kiani asked 5 years ago
- You must login to post comments
Hi Hamza Kiani,
Unfortunately I’m not aware about such problem ( at least there was no such errors with other third-party libraries which our customers use in their applications ). So I want to ask you to create a project which reproduces this issue and we’ll try to find and fix the cause of this error.
Best regards,
Yura
- Yura Khariton answered 5 years ago
-
I am using .so files in my project it works fine, but when i import Scichart libraries in my project it generates an error while loading .so files from jniLibs folder (java.lang.UnsatisfiedLinkError: Couldn’t load Health7500-1.0.5 from loader dalvik.system.PathClassLoader[DexPathList[[zip file “/data/app/com.example.healthintegratedmachine-1.apk”],nativeLibraryDirectories=[/data/app-lib/com.example.healthintegratedmachine-1, /vendor/lib, /system/lib]]]: findLibrary returned null)
-
My .so file is only conflicting with ‘core’ and ‘data’ libraries of scichart. Whenever I import core and data library in my application .so file generates an error (find Library returned null ) but when I comment both lines ‘core’ and ‘data’ it works fine,other libraries of Scichart ‘drawing’ ‘,’charting’ and ‘extensions’ works fine every time.
-
So you use NDK in your project, right? You didn’t mention this before and I thought that you used some Java library. That’s why I asked about project which reproduces this issue and if you don’t provide it I won’t be able to help you with this issue.
-
Here is the link of Project
- You must login to post comments
Hi Hamza Kiani,
Thanks, I took a look on your application and it looks like that you placed your .so file into jniLibs/armeabi folder which according to documentation was deprecated and can’t be used anymore. Not sure why your project works if comment include of SciChart library ( maybe there are some fallbacks if there no other abi’s for APK), but to fix this issue you just need to create jniLibs/armeabi-v7a or jniLibs/arm64-v8a folder ( it depends on CPU architecture of device which you use for testing or you can create both) and place your libHealth7500-1.0.5.so there. Then recompile project. This steps fixed your project for me.
Hope this will help you!
Best regards,
Yura
- Yura Khariton answered 5 years ago
- You must login to post comments
Please login first to submit.