Running Android Native Code Is Causing Java.lang.unsatisfiedlinkerror
Solution 1:
Your tablet is based on Intel Atom CPU. You must build your native_module for APP_ABI=x86
. Note that you also need the compatible version of OpenCV.
Update: in this particular case, the app was built for both x86 and ARM. But the app installer chose the wrong subfolder, maybe because the filenames listed in libs/x86
and libs/armeabi
did not exactly match. The reliable and efficient approach for apps that have non-trivial native component is to upload separate APKs to PlayStore.
Solution 2:
I have an Asus Zenfone 5 (which uses the x86 ABI) and I was having the same problem. Apparently the problem was with the OpenCV 2.x versions. Start using the OpenCV 3.x version and the problem is going to be solved.
The OpenCV 3.x version has more ABI options, such as:
arm64v8a
arm
armv7a
mips
mips64
x86
x86-64
You can find the 3.x version here.
Hope it helped!
Post a Comment for "Running Android Native Code Is Causing Java.lang.unsatisfiedlinkerror"