-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't rebuild *simple* app :( #2200
Comments
This is the same issue as 2104: https://github.com/iBotPeaches/Apktool/issues/2104 |
|
Weird. You're right - if you click on the link it doesn't work. But if you type the URL in manually, it does. Don't ask me why... |
no the problem is using the www is doing it :D but anyways the apktool is not working :/ many people have this problem but no one is answering for workaround... looks like there is no fix for it and must to wait for update and who knows when it will be updated :( |
I've been able to rebuild this file with apktool 2.4.1. First I decompiled it:
Then recompiled it with aapt:
This is saying there are some duplicate lines in "styles.xml". If I delete those and try recompiling again, it works.
This translation warning isn't an issue worth worrying about. However, if I recompile with aapt2, I get something slightly different:
There are some lines in "attrs.xml" that are causing trouble. Those lines are these:
This can be fixed, but then apktool gives different errors. So it's easier just to use aapt instead. It's not impossible that these dummy values might cause some trouble with the recompiled APK. Or they might not cause any trouble at all and the app will work just fine. The only way to tell is to try it and see what happens. Hope this helps! |
yeah but your error is different then my #2265 |
My reply was for this issue. The one you've linked to is a different issue entirely. |
Closing as duplicate - #2104 v2.5.0 will have a new mechanism for dummy resources so may be worth a double check there when released. |
Information
Stacktrace/Logcat
Steps to Reproduce
apktool d framework-res.apk
apktool b framework-res
Frameworks
There is only one apk in folder /system/framework and it is framework-res.apk
APK
https://drive.google.com/file/d/1tDl-5xa1JJxFzn_6i5II9X45D5fd0qZ4/view?usp=sharing
Questions to ask before submission
apktool d
,apktool b
without changing anything? YesThe text was updated successfully, but these errors were encountered: