sky201503 / android-apktool-1

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

Unable to Rebuild Apk #344

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Decompile the Apk.
2. Rebuild the apk.

What is the expected output? What do you see instead?
The apk should get generated.

What version of the product are you using? On what operating system?
apktool 14.3

Please provide any additional information below.

Problem::
Am able to unpack the apk using apktool.jar successfully.
But while rebuilding the same, am getting the following exception

--------EXCEPTION----------------
C:\Apktool\Demo-R2\res\values\public.xml:224: error: Public symbol drawa
ble/toggle_left_inactive_h7 declared here is not defined.
C:\Apktool\Demo-R2\res\values\public.xml:225: error: Public symbol drawa
ble/toggle_left_tap_h7 declared here is not defined.
C:\Apktool\Demo-R2\res\values\public.xml:226: error: Public symbol drawa
ble/togbrut.androlib.AndrolibException: brut.common.BrutException: could not exe
c command: [aapt, p, -F, C:\Users\246069\AppData\Local\Temp\APKTOOL3953585130007
89049.tmp, -I, C:\Users\246069\apktool\framework\1.apk, -S, C:\Apktool\WesternUn
ion-R2\res, -M, C:\Apktool\Demo-R2\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
        at brut.androlib.Androlib.buildResources(Androlib.java:248)
        at brut.androlib.Androlib.build(Androlib.java:171)
        at brut.androlib.Androlib.build(Androlib.java:154)
        at brut.apktool.Main.cmdBuild(Main.java:182)
        at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\246069\AppData\Local\Temp\APKTOOL395358513000789049.tmp, -I, C:\Users\24606
9\apktool\framework\1.apk, -S, C:\Apktool\Demo-R2\res, -M, 
C:\Apktool\Demo-R2\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:83)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
        ... 6 more
gle_middle_active_h7 declared here is not defined.
C:\Apktool\Demo-R2\res\values\public.xml:227: error: Public symbol drawa
ble/toggle_middle_inactive_h7 declared here is not defined.
C:\Apktool\Demo-R2\res\values\public.xml:228: error: Public symbol drawa
ble/toggle_middle_tap_h7 declared here is not defined.
C:\Apktool\Demo-R2\res\values\public.xml:229: error: Public symbol drawa
ble/toggle_right_active_h7 declared here is not defined.
C:\Apktool\Demo-R2\res\values\public.xml:230: error: Public symbol drawa
ble/toggle_right_inactive_h7 declared here is not defined.

--------EXCEPTION----------------

Am not able to understand the problem and I dont know the solution.
Any one have any idea on this???

Original issue reported on code.google.com by sathishm...@gmail.com on 19 Sep 2012 at 7:20

GoogleCodeExporter commented 9 years ago
Don't have frameworks installed.

http://code.google.com/p/android-apktool/wiki/FrameworkFiles

Original comment by connor.tumbleson on 16 Nov 2012 at 7:02