无法使系统的应用程序时加载.so库文件 [英] Unable to load .so library files when making a system application
问题描述
我已经创建了这将是一个系统应用的应用程序。 当我安装的应用程序通常(而不是系统应用程序)。所以文件越来越加载。但是,当我让它成为一个系统的应用通过将APK到/系统/应用/ ,我发现了以下错误
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. But when I'm making it a system application by putting the apk into /system/app/ , I'm getting the following error
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 -
似乎的.o和。所以文件位于/系统/ lib中/和/供应商/ lib目录/。
It seems that ".o" and ".so" files are located in /system/lib/ and /vendor/lib/ .
即使添加文件到相应的目录,仍然无法加载库。
Even after adding the files to the respective directories, still failing to load the libraries.
任何帮助,将AP preciated。
Any Help would be appreciated.
推荐答案
在我的情况下,问题涉及到权限。把.SO文件到相应的目录后,我修改了默认的权限分配600〜644。它运作良好。
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 644. It worked well.
这篇关于无法使系统的应用程序时加载.so库文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!