简体   繁体   English

在制作系统应用程序时无法加载.so库文件

[英]Unable to load .so library files when making a system application

I have created an application which will be a System Application . 我创建了一个应用程序,它将是一个系统应用程序 When I install the application normally(not as system application) ".so" files are getting loaded. 当我正常安装应用程序(而不是系统应用程序)时,“。so”文件正在加载。 But when I'm making it a system application by putting the apk into /system/app/ , I'm getting the following error 但是当我通过将apk放入/ system / app /将其作为系统应用程序时,我收到以下错误

01-09 00:20:26.889: E/AndroidRuntime(2101): java.lang.UnsatisfiedLinkError: Couldn't load iconv from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/system/app/My.apk"],nativeLibraryDirectories= [/vendor/lib, /system/lib]]]: findLibrary returned null

Research that I have done on this - 我对此做过的研究 -

It seems that ".o" and ".so" files are located in /system/lib/ and /vendor/lib/ . 似乎“.o”和“。so”文件位于/ system / lib /和/ vendor / lib /中。

Even after adding the files to the respective directories, still failing to load the libraries. 即使将文件添加到相应的目录后,仍然无法加载库。

Any Help would be appreciated. 任何帮助,将不胜感激。

In my case the issue was related to permissions. 就我而言,问题与权限有关。 After putting the ".SO" files into respective directories, I modified the default allocated permissions 600 to 755. It worked well. 将“.SO”文件放入各自的目录后,我将默认分配的权限600修改为755.它运行良好。

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

相关问题 Android:无法加载系统库 - Android: Unable to load a system library 无法加载.so文件 - Unable to load .so file 我可以将Java编译为共享库(.so)并通过Java中的System.load()函数加载它吗? - Can I compile Java into shared library(.so) and load it by System.load() function in Java? UnsatisfiedLinkError:无法加载库 - UnsatisfiedLinkError: Unable to load library 无法加载库“ gs”:libgs.so:无法打开共享对象文件:无此文件或目录 - Unable to load library 'gs': libgs.so: cannot open shared object file: No such file or directory 无法加载 JVMCI 共享库:libcrypt.so.1:无法打开共享对象文件:没有这样的文件或目录 - Unable to load JVMCI shared library: libcrypt.so.1: cannot open shared object file: No such file or directory linux中的java tesseract错误“无法加载库'tesseract':libtesseract.so” - java tesseract error in linux “Unable to load library 'tesseract': libtesseract.so” 无法加载库“tesseract”:libtesseract.so:无法打开共享对象文件:没有这样的文件或目录 - Unable to load library 'tesseract': libtesseract.so: cannot open shared object file: No such file or directory 无法在JNI项目中加载.so - Unable to load .so in JNI project 加载rJava库时“无法加载共享对象” - “unable to load shared object” when loading the rJava library
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM