简体   繁体   English

Android Things捆绑包 - UnsatisfiedLinkError

[英]Android Things bundle - UnsatisfiedLinkError

I use a native library in my Android Things project. 我在Android Things项目中使用本机库。 While using Android Studio to build and install an app on RPi3 with Android Things Dev preview 0.4.1 everything works fine. 使用Android Studio在RPi3上使用Android Things Dev预览0.4.1构建和安装应用程序时,一切正常。 Even if I manually assemble release apk and install it through an adb install - it works as usual. 即使我手动组装release apk并通过adb install安装它 - 它照常工作。 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: 但是,如果我创建一个新的zip包并将其上传到Android Things控制台,然后使用新创建的图像刻录SD卡,则会在启动时抛出UnsatisfiedLinkError:

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. 我的app.apk包含/ lib / armeabi目录,其中包含libspeech.so。 Did anybody have something similar with Android Things? 有人和Android Things有类似的东西吗?

对于上一个版本(开发预览7),有时会出现问题,当您在新版本上使用相同的versionCodeversionName ,它不会发生,这是一个临时解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM