如何更新.apk中的资源文件

发布于 2024-10-07 18:49:16 字数 202 浏览 0 评论 0原文

创建我的(未签名)apk 文件时,通过解压缩程序查看 apk 文件时,我的 res/values/ 文件夹会消失。但是,会显示 res/drawables 和 res/layout 文件夹。有什么方法可以确保 apk 文件包含 res/values/ 文件夹?

我的主要用例是根据客户的需求更新位于 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?

The main use case I have is updating various values in the resources file located in res/values depending on the customer's needs.

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

海夕 2024-10-14 18:49:16

这正如预期的那样。 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.

漆黑的白昼 2024-10-14 18:49:16

出于性能原因,所有 XML 资源都编译为二进制格式。所以你将看不到它们。

All XML resources are compiled into binary format for performance reasons. SO you would not be able to see them.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文