如何更新 .apk 中的资源文件 [英] How to update resources file in .apk
问题描述
在创建我的(未签名)apk 文件时,我的 res/values/文件夹在通过解压缩程序查看 apk 文件时消失了.但是,会显示 res/drawables 和 res/layout 文件夹.有没有办法确保apk文件包含res/values/文件夹?
When creating my (unsigned) apk file, my res/values/ folder disappears when viewing the apk file through an unzipping program. However, the res/drawables and res/layout folders show up. Is there any way to ensure the apk file contains the res/values/ folder?
我的主要用例是根据客户的需要更新位于 res/values 中的资源文件中的各种值.
The main use case I have is updating various values in the resources file located in res/values depending on the customer's needs.
提前致谢!
推荐答案
这是预期的.values 文件夹以二进制格式编译,您无法检索它.如果您需要更改某些内容,那么您需要重新打包所有内容.
This is as intended. The values folder is compile in binary format and you cannot retrieve it. If you need to change something, then you need to repackage everything again.
这篇关于如何更新 .apk 中的资源文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!