[Android Software Development] DIII:
EDIT: ignore this post. while copying apktool, i forgot to copy aapt.exe, hence the errors. All fixed now.

This probably belongs in that guide thread, but i'll post it here.

I decompiled the apk and without modifying anything tried recompiling it again. But faced following error.

C:\apktool>apktool b workspace FlappyExample.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\C-Tech\AppData\Local\Temp\
APKTOOL8920522532462920879.tmp, -I, C:\Users\C-Tech\apktool\framework\1.apk, -S,
C:\apktool\workspace\res, -M, C:\apktool\workspace\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\C-Tech\AppData\Local\Temp\APKTOOL8920522532462920879.tmp, -I, C:\Users\C-Te
ch\apktool\framework\1.apk, -S, C:\apktool\workspace\res, -M, C:\apktool\workspa
ce\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2
, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more

this is what i did so far.

1. Download + extract apktool from mega link

2. install Java

C:\apktool>java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

3. copy the framework-res.apk and twframework-res.apk from my S3's /system/framework folder and put it in apktool folder

4.

C:\apktool> apktool if framework-res.apk
I: Framework installed to: C:\Users\C-Tech\apktool\framework\1.apk

5.

C:\apktool> apktool if twframework-res.apk
I: Framework installed to: C:\Users\C-Tech\apktool\framework\2.apk

6. Decompile

C:\apktool>apktool d "Original FlappyBird.apk" workspace
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\C-Tech\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...

7. Recompile

C:\apktool>apktool b workspace FlappyExample.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\C-Tech\AppData\Local\Temp\
APKTOOL8920522532462920879.tmp, -I, C:\Users\C-Tech\apktool\framework\1.apk, -S,
C:\apktool\workspace\res, -M, C:\apktool\workspace\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\C-Tech\AppData\Local\Temp\APKTOOL8920522532462920879.tmp, -I, C:\Users\C-Te
ch\apktool\framework\1.apk, -S, C:\apktool\workspace\res, -M, C:\apktool\workspa
ce\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2
, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more

can someone guide me what am i missing or what am i doing wrong?