简体   繁体   English

aapt,错误:转储失败,因为未找到AndroidManifest.xml

[英]aapt, ERROR: dump failed because no AndroidManifest.xml found

I know there are a lot of these topics around but none seem to help in my case, nor describe it exactly. 我知道这些主题很多,但似乎对我的情况没有帮助,也无法准确描述。

My problem is when I run this command ./aapt d test.apk myfolder (in mac) I'm getting ERROR: dump failed because no AndroidManifest.xml found 我的问题是当我运行此命令时./aapt d test.apk myfolder (在Mac中)我遇到ERROR: dump failed because no AndroidManifest.xml found

I tried to extract apk by changing it to jar file. 我试图通过将其更改为jar文件来提取apk。 After extract manifest file was there. 提取清单文件之后。 The only thing that I think is throwing error encryption of manifest file. 我认为唯一的事情就是对清单文件进行错误加密。 When I'm opening manifest (or any other xml drawable files) file in an editor the thing that I see is: 当我在编辑器中打开清单(或任何其他xml可绘制文件)文件时,我看到的是: 在此处输入图片说明

However when I use aapt l -a name.apk command, I'm able to see manifest file in terminal but has hundreds of line which is not eye friendly. 但是,当我使用aapt l -a name.apk命令时,我可以在终端中看到清单文件,但有数百行对眼睛不友好。

any suggestion would be appreciated. 任何建议将不胜感激。 Thanks 谢谢

manifest file is serialized and hence in non-human readable form 清单文件已序列化,因此为非人类可读格式

try to de-compile the apk via apktools.jar 尝试通过apktools.jar反编译apk

{remember to install the framework-res.apk from your phone/tablet first} {请记住先从手机/平板电脑安装framework-res.apk}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM