Android Things bundle - UnsatisfiedLinkError

狂风中的少年 提交于 2019-12-12 08:57:19

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!