简体   繁体   English

APKTool错误重新编译apk

[英]APKTool error ricompiling apk

I' m trying to modify the application's graphic. 我正在尝试修改应用程序的图形。 So when I decompile the apk using apktool with apktool d myapp.apk everything goes well. 因此,当我使用带有apktool d myapp.apk apktool反编译apk时,一切顺利。 I can see the resources and the smali folders so it's perfect. 我可以看到资源和smali文件夹,因此非常完美。 So I can modify the colour code that I need to change. 因此,我可以修改需要更改的颜色代码。

When I try to build back the application using apktool b myapkfolder no errors are displayed from apktool. 当我尝试使用apktool b myapkfolder应用程序时, apktool b myapkfolder没有显示错误。 But when I try to install it on my phone it says "Parse error there has been a problem for analysing the packet". 但是,当我尝试将其安装在手机上时,它显示“解析错误,分析数据包时出现问题”。 So I though it use my fault modifying something wrong in the application so I tried to decompile the apk and then recompile it without touching anything in the apk folder. 因此,尽管我使用我的错误来修改应用程序中的某些错误,所以我尝试对apk进行反编译,然后重新编译它,而无需触及apk文件夹中的任何内容。 What I can see is that the original apk size is 5.78MB and the recompiled one is 5.77MB (and I didn't touch anything literally) and when I try to install it, the phone gives me back the same error "Parse error there has been a problem for analysing the packet". 我可以看到的是,原始apk大小为5.78MB,重新编译的apk大小为5.77MB(而且我从字面上没有触摸任何东西),当我尝试安装它时,电话给了我同样的错误“解析错误已经用于分析数据包”的问题。

So I can't figure out what the problem is. 所以我不知道是什么问题。 I thought the problem was related to code obfuscation but I' m note sure. 我认为这个问题是有关代码混淆但我注意到肯定。 Is there a solution for that? 有解决方案吗?

Well If you have lost you project and you want to import it to eclipse then you can use this link: click here 好吧,如果您丢失了项目,并且想要将其导入到Eclipse中,则可以使用此链接: 单击此处

And Yes ill tell you your question is valid ( and by the way there's nothing to do legal or illegal here as this forum is to clear your doubts ) 是的,请告诉您您的问题是有效的(而且在这里,任何合法或非法的事情都无济于事,因为此论坛旨在消除您的疑问)

The link will have two parts on importing your decompiled files and yes if you are unsuccessful in decompiling then this link will help you out click here 该链接分为两部分,分别是导入反编译文件,是的,如果您未成功进行反编译,则此链接将帮助您单击此处。

And yes you try these things anywhere..( and personally you MUST KEEP A BACKUP ON CLOUD STORAGE , WHERE YOU CAN ACCESS IT FROM ANYWHERE ) 是的,您可以在任何地方尝试这些操作。.(并且您个人必须保留对云存储的备份,无论您在哪里可以从任何地方访问它)

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

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