如何更新 .apk 中的资源文件 [英] How to update resources file in .apk

查看:48
本文介绍了如何更新 .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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆