问题
A customer contacted me - an Android app of mine broke once he updated his Android ROM to MIUI equivalent to Android 4.0.3. The relevant line in LogCat is:
04-09 10:37:09.326 17789 17789 E AndroidRuntime: java.lang.UnsatisfiedLinkError: Couldn't load mylib: findLibrary returned null
The app, needless to say, worked before the upgrade. So the native library did not go magically missing. Any ideas why would Android 4.0.3 refuse to load a native library where earlier versions would? The library is built for x86 and for armeabi
(not for armeabi-v7a
though). The crash report contains the following lines:
[ro.product.cpu.abi2]: [armeabi]
[ro.product.cpu.abi]: [armeabi-v7a]
So armeabi
should be supported, right?
Possibly relevant info: here. But the situation in the bug is the inverse of what I've got here.
来源:https://stackoverflow.com/questions/10076176/native-library-not-loading-under-android-4-0-3-miui-rom