Issue
In my android App, I use two libraries which each has its own jniLibs.
library 1 - https://github.com/tekinarslan/AndroidPdfViewer
library 2 - custom video player sdk
The app will compile and build fine.
both library has the jniLibs in the correct place.
It seems that only one library will work, in this case the pdfView. The the library 2 is called. it breaks and the log say it can not load the jniLibs for it.
Does anyone has ever came across it ? thanks
Update code after chaeyoungx feedback:
App Build.gradle:
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.my.app"
minSdkVersion 17
targetSdkVersion 22
versionCode 14
versionName "1.0"
ndk { abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "x86", "mips" }
}
....
I tried this following code in both files: gradle.properties (Project and Global)
android.useDeprecatedNdk=true
Still have the same problem.
Solution
Make sure, you have your libraries built for every abi. Look at your final apk file. In the folder libs you'll find folders with libs for each abi. There should be the same libraries in each one. In case you don't have enough:
- build your libraries for other abis
exclude these folders, i.e.
armeabi lib1.so lib2.so lib3.so armeabi-v7a lib1.so lib2.so lib3.so arm64-v8a lib1.so
In this situation arm64 device will go to arm64-v8a folder and try to find lib2, lib3, and won't find them. So exclude arm64-v8a folder in java application's gradle file, so arm64 device could use armeabi folder.
Answered By - user1056837
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.