sky201503 / android-apktool-1

Automatically exported from code.google.com/p/android-apktool
0 stars 0 forks source link

brut.common.BrutException: could not exec command #377

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.apktool  d z4root.apk
2.apktool  b z4root

F:\>cd ApkTool

F:\ApkTool>apktool  d z4root.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\doudouhe\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...

F:\ApkTool>apktool b z4root
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
F:\ApkTool\z4root\res\values\styles.xml:3: error: Error retrieving parent for 
item: No resource found that matches the given
name '@*android:style/Theme.Light'.
Exception in thread "main" brut.androlib.AndrolibException: 
brut.common.BrutException: could not exec command: [aapt, p, --mi
n-sdk-version, 4, -F, 
C:\Users\doudouhe\AppData\Local\Temp\APKTOOL5143956726492038165.tmp, -I, 
C:\Users\doudouhe\apktool\fram
ework\1.apk, -S, F:\ApkTool\z4root\res, -M, 
F:\ApkTool\z4root\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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-sdk-version, 4, -F, C:\Users\doudouhe\AppData\L
ocal\Temp\APKTOOL5143956726492038165.tmp, -I, 
C:\Users\doudouhe\apktool\framework\1.apk, -S, F:\ApkTool\z4root\res, -M, F:\Ap
kTool\z4root\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:83)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
        ... 6 more

“brut.common.BrutException: could not exec command: [aapt, p, --mi
n-sdk-version, 4, -F,” I do not know what is the reason?

Original issue reported on code.google.com by hewei608...@gmail.com on 24 Dec 2012 at 6:13

GoogleCodeExporter commented 9 years ago
Its either a bug or an outdated framework.

So attach the APK.

Original comment by connor.tumbleson on 24 Dec 2012 at 1:47

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
No response. Cleaning up tracker. Please open a new bug if you decide to attach 
apk.

Original comment by connor.tumbleson on 4 May 2013 at 7:48