Android apktool错误
您好,我的客户尝试将 apk 添加到他们的市场应用程序中,但出现了如下错误。
*18.Ağu.2011 12:23:14 brut.androlib.res.AndrolibResources loadMainPkg 信息:正在加载资源表...线程“main”中出现异常 java.lang.Error:Androlib 错误:多个资源:spec=0x7f02004c 可绘制/ top_bar_large, config=-ldpi*
看来该工具认为名为 top_bar_large 的可绘制资源具有被使用过不止一次。这是正确的,但在不同的可绘制目录中。
我的意思是图像位于目录中;
。
问题
我知道 android 会自动处理这个 而且我还把那个失败的(实际上该工具认为它失败了)apk 安装到我的手机和其他手机(不同品牌)上,没有任何问题!
我需要做什么?你能帮助我吗 ?
Hi my customer tried to add the apk to their market application and an error occured like below.
*18.Ağu.2011 12:23:14 brut.androlib.res.AndrolibResources loadMainPkg INFO: Loading resource table... Exception in thread "main" java.lang.Error: Androlib Error: Multiple resources: spec=0x7f02004c drawable/top_bar_large, config=-ldpi*
it seems the tool thinks that the drawable resource named top_bar_large has been used more than once. That's right but in different drawable directories.
I mean the image is located in the directories;
drawable-ldpi
drawable-xlarge-ldpi
As I know android handles this automatically. And I also have installed that failing (actually the tool thinks it is failing) apk to my phones and other phones ( different brand ) without any issue !
What do I need to do ? can you help me ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我希望这仍然有意义。
我会建议两件事之一。首先,尝试最新版本的 apktool。据我所知,xlarge 添加到 apktool 的时间比较晚。最新版本应该可以正常工作。
如果没有,你可以尝试 zzos (全面披露:zzos 是我写的)。它鲜为人知,但偶尔可能能够处理 apktool 无法反编译的 APK。特别是,我碰巧知道 zzos 支持 xscale,并且已经有一段时间了。
我希望这有帮助,
沙查尔
I hope this is still relevant.
I would suggest one of two things. First, try the latest version of apktool. As far as I know, xlarge was added rather late to apktool. The latest version should work fine.
If not, you can try zzos (full disclosure: zzos was written by me). It is much less known, but may occasionally be able to handle APKs that apktool fails to decompile. In particular, I happen to know that xscale is supported by zzos, and has been for some time.
I hope this helps,
Shachar