[Nexus S Q&A, Help & Troubleshooting] flab80:
Hello,

can someone help me?

I'm trying to recompile framework-res.apk from OTA JellyBean 4.1.1

I'm using apktool_1.4.8 and i can decompile correctly.

But when i try to recompile i get thi errors:

C:\Users\f.labruzzo\Desktop\Nexus S\developping\ICS Apktool>java -jar apktool.ja

r b framework-res

W: Could not find sources

I: Checking whether resources has changed...

I: Building resources...

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/anim-sw720dp

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/drawable-sw600dp-hdpi

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/drawable-sw600dp-nodpi

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/drawable-sw720dp-nodpi

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/layout-sw600dp

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/layout-sw720dp

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/layout-w600dp

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/values-h720dp

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/values-sw600dp

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/values-sw600dp-land

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/values-sw600dp-w960dp

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/values-sw720dp

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/values-sw720dp-land

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/values-sw720dp-port

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/values-sw720dp-w1280dp

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/values-w360dp

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/values-w480dp

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/values-w500dp

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/values-w600dp

invalid resource directory name: C:\Users\f.labruzzo\Desktop\Nexus S\developping

\ICS Apktool\framework-res\res/values-w720dp

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce

ption: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-ver

sion, 16, -F, C:\Users\F6A9F~1.LAB\AppData\Local\Temp\APKTOOL1475172691528652948

.tmp, -x, -S, C:\Users\f.labruzzo\Desktop\Nexus S\developping\ICS Apktool\framew

ork-res\res, -M, C:\Users\f.labruzzo\Desktop\Nexus S\developping\ICS Apktool\fra

mework-res\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav

a:252)

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:182)

at brut.apktool.Main.main(Main.java:67)

Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd

k-version, 16, --target-sdk-version, 16, -F, C:\Users\F6A9F~1.LAB\AppData\Local\

Temp\APKTOOL1475172691528652948.tmp, -x, -S, C:\Users\f.labruzzo\Desktop\Nexus S

\developping\ICS Apktool\framework-res\res, -M, C:\Users\f.labruzzo\Desktop\Nexu

s S\developping\ICS Apktool\framework-res\AndroidManifest.xml]

at brut.util.OS.exec(OS.java:83)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav

a:250)

... 6 more

Thanks a lot