decode ok, but build error, anybody help

2,220 views
Skip to first unread message

Johnny Chen

unread,
Oct 9, 2013, 3:32:15 PM10/9/13
to apk...@googlegroups.com
i decode the apk ok, but when i try to build the apk, it shows this error: 

D:\APKTool>apktool b test
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
D:\APKTool\test\res\values\styles.xml:211: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
D:\APKTool\test\res\values\styles.xml:251: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
D:\APKTool\test\res\values\styles.xml:298: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
D:\APKTool\test\res\values\styles.xml:328: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
D:\APKTool\test\res\values\styles.xml:344: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base.DropDownItem'.
D:\APKTool\test\res\values\styles.xml:370: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
D:\APKTool\test\res\values\styles.xml:377: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Light.Base'.
D:\APKTool\test\res\values\styles.xml:394: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Base'.
D:\APKTool\test\res\values\styles.xml:427: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
D:\APKTool\test\res\values-v14\styles.xml:50: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
D:\APKTool\test\res\values\styles.xml:619: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Base'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 14, --target-sdk-version, 14, -F, C:\Users\Jessy\AppData\Local\Temp\APKTOOL3158503521701158020.tmp, -I, C:\Users\Jessy\apktool\framework\1.apk, -S,
 D:\APKTool\test\res, -M, D:\APKTool\test\AndroidManifest.xml]
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
        at brut.androlib.Androlib.buildResources(Androlib.java:283)
        at brut.androlib.Androlib.build(Androlib.java:206)
        at brut.androlib.Androlib.build(Androlib.java:176)
        at brut.apktool.Main.cmdBuild(Main.java:228)
        at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 14, --target-sdk-version, 14, -F, C:
\Users\Jessy\AppData\Local\Temp\APKTOOL3158503521701158020.tmp, -I, C:\Users\Jessy\apktool\framework\1.apk, -S, D:\APKTool\test\res, -M, D:\APKTool\test\Android
Manifest.xml]        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
        ... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 14, --target-sdk-version, 14, -F, C:\Users\Jessy\AppData\Local\Temp\A
PKTOOL3158503521701158020.tmp, -I, C:\Users\Jessy\apktool\framework\1.apk, -S, D:\APKTool\test\res, -M, D:\APKTool\test\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:89)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
        ... 6 more

please help. thanks

shlomo abuisak

unread,
Oct 13, 2013, 3:54:55 AM10/13/13
to apk...@googlegroups.com
try my program may be it will help

בתאריך יום רביעי, 9 באוקטובר 2013 22:32:15 UTC+3, מאת Johnny Chen:

Johnny Chen

unread,
Oct 13, 2013, 8:52:47 AM10/13/13
to apk...@googlegroups.com
Hi, thanks for the program, but i can de-compile, but my problem is when i building it, it shows error, i need something to build it without error.

shlomo abuisak於 2013年10月13日星期日UTC+2上午9時54分55秒寫道:

Ryszard Wiśniewski

unread,
Oct 14, 2013, 1:37:09 AM10/14/13
to apk...@googlegroups.com

shlomo abuisak, I think it's the first time I criticize someone who created a tool extending apktool, but don't spam, please. You post links to your tool wherever you can, even if they totally unrelated to the question and can't help in any way. If you see that someone have problems with using apktool from a terminal - this is the case where your tool can be helpful (but I personally didn't use it, so I don't know if it actually is). If you see the question like above then I don't know... do you intentionally suggest a solution that won't help just to advertise your work or you don't actually understand how your own tool works, so you don't know it is totally out of the question?


--
You received this message because you are subscribed to the Google Groups "apktool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apktool+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Johnny Chen

unread,
Oct 14, 2013, 2:09:04 PM10/14/13
to apk...@googlegroups.com
Hi Ryszard 

Thank you very much, you solved my problem.
Give you 100000 thumb up.
Thanks

Ryszard Wiśniewski於 2013年10月14日星期一UTC+2上午7時37分09秒寫道:

Sam

unread,
Dec 5, 2015, 7:40:47 AM12/5/15
to apktool
hello Johnny, I am having the same problem as u have mentioned above in your first post

after hours of searching I still haven't got any solution..can you please tell  me what you did to solve this problem

any help wud be appreciated..!!!
Reply all
Reply to author
Forward
0 new messages