问题
I use a native library in my Android Things project. While using Android Studio to build and install an app on RPi3 with Android Things Dev preview 0.4.1 everything works fine. Even if I manually assemble release apk and install it through an adb install - it works as usual. But if I create a new zip bundle and upload it to Android Things console, and then burn an SD card with newly created image, the UnsatisfiedLinkError is thrown on boot:
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/oem/app/app.apk"],nativeLibraryDirectories=[/oem/lib/app, /system/fake-libs, /oem/app/app.apk!/lib/armeabi, /system/lib, /vendor/lib, /system/lib, /vendor/lib]]] couldn't find "libspeech.so"
My app.apk contains /lib/armeabi directory with libspeech.so inside exactly. Did anybody have something similar with Android Things?
回答1:
With last version (dev preview 7) the issue sometimes happens, when you use the same versionCode
and versionName
on your new builds does not happen it, this is a provisional solution..
来源:https://stackoverflow.com/questions/46161998/android-things-bundle-unsatisfiedlinkerror