sky201503 / android-apktool-1

Automatically exported from code.google.com/p/android-apktool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't rebuild a apk even without any changes.

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1.Decompiling one apk which is all right before.
2.Rebuild the apk
3.But with error message.

******************************************************************************
D:\Mobilephone\apktool1.5>apktool d m.apk m
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\XingYan\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...

D:\Mobilephone\apktool1.5>apktool b m
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
D:\Mobilephone\apktool1.5\m\res\values\styles.xml:3: error: Error retrieving par
ent for item: No resource found that matches the given name '@*android:style/The
me.Wallpaper'.
D:\Mobilephone\apktool1.5\m\res\values\styles.xml:38: error: Error retrieving pa
rent for item: No resource found that matches the given name '@*android:style/Wi
dget.Button.Small'.
D:\Mobilephone\apktool1.5\m\res\values\styles.xml:63: error: Error retrieving pa
rent for item: No resource found that matches the given name '@*android:style/Th
eme.Dialog'.
D:\Mobilephone\apktool1.5\m\res\values\styles.xml:73: error: Error retrieving pa
rent for item: No resource found that matches the given name '@*android:style/An
imation'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 9, --target-sdk-vers
ion, 9, -F, C:\Users\XingYan\AppData\Local\Temp\APKTOOL1224666502682351466.tmp,
-I, C:\Users\XingYan\apktool\framework\1.apk, -S, D:\Mobilephone\apktool1.5\m\re
s, -M, D:\Mobilephone\apktool1.5\m\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
        at brut.androlib.Androlib.buildResources(Androlib.java:269)
        at brut.androlib.Androlib.build(Androlib.java:192)
        at brut.androlib.Androlib.build(Androlib.java:174)
        at brut.apktool.Main.cmdBuild(Main.java:188)
        at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 9, --target-sdk-version, 9, -F, C:\Users\XingYan\AppData\Local\Temp\A
PKTOOL1224666502682351466.tmp, -I, C:\Users\XingYan\apktool\framework\1.apk, -S,
 D:\Mobilephone\apktool1.5\m\res, -M, D:\Mobilephone\apktool1.5\m\AndroidManifes
t.xml]
        at brut.util.OS.exec(OS.java:83)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
        ... 6 more

D:\Mobilephone\apktool1.5>
***************************************************************************

I think this error may in the style.xml.

What version of the product are you using? On what operating system?
I am using apktool v1.5.0
win8 32bit

apktool v1.4.10 has no that kind of error.

Original issue reported on code.google.com by xing8...@gmail.com on 18 Nov 2012 at 5:30

Attach that apk?

Original comment by connor.tumbleson on 19 Nov 2012 at 10:09

  • Changed state: Waiting_For_Issuer
Here is the file.I only reach the internet weekend. 

Original comment by xing8...@gmail.com on 23 Nov 2012 at 2:10

Attachments:

No problem with updated frameworks.

Make sure you read FrameworkFiles and MigrationInstructions.

http://pastebin.com/yCUFDcaQ

Original comment by connor.tumbleson on 6 Jan 2013 at 11:33

  • Changed state: Invalid