[英]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.