[Android Software Development] McDV:
Hi!

I've got the following problem with recompiling the APK on my MacBook.

Decompiling works without any issues:

XYZs-MacBook:platform-tools xyz$ apktool d framework-res.apk framework
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...

But when it comes to recompiling, I get some errors I can't solve:

XYZs-MacBook:platform-tools xyz$ apktool b framework out/framework-res.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: /Users/xyz/Downloads/android-sdk-macosx/platform-tools/framework/res/drawable-sw600dp-hdpi
invalid resource directory name: /Users/xyz/Downloads/android-sdk-macosx/platform-tools/framework/res/layout-sw600dp
invalid resource directory name: /Users/xyz/Downloads/android-sdk-macosx/platform-tools/framework/res/layout-w600dp
invalid resource directory name: /Users/xyz/Downloads/android-sdk-macosx/platform-tools/framework/res/values-h720dp
invalid resource directory name: /Users/xyz/Downloads/android-sdk-macosx/platform-tools/framework/res/values-sw600dp
invalid resource directory name: /Users/xyz/Downloads/android-sdk-macosx/platform-tools/framework/res/values-sw600dp-land
invalid resource directory name: /Users/xyz/Downloads/android-sdk-macosx/platform-tools/framework/res/values-sw600dp-w1024dp
invalid resource directory name: /Users/xyz/Downloads/android-sdk-macosx/platform-tools/framework/res/values-sw600dp-w1280dp
invalid resource directory name: /Users/xyz/Downloads/android-sdk-macosx/platform-tools/framework/res/values-w360dp
invalid resource directory name: /Users/xyz/Downloads/android-sdk-macosx/platform-tools/framework/res/values-w480dp
invalid resource directory name: /Users/xyz/Downloads/android-sdk-macosx/platform-tools/framework/res/values-w500dp
invalid resource directory name: /Users/xyz/Downloads/android-sdk-macosx/platform-tools/framework/res/values-w600dp
invalid resource directory name: /Users/xyz/Downloads/android-sdk-macosx/platform-tools/framework/res/values-w720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/01/hrx97dzs7899185vrzr80kyr0000gn/T/APKTOOL2624270228037310506.tmp, -x, -S, /Users/xyz/Downloads/android-sdk-macosx/platform-tools/framework/res, -M, /Users/xyz/Downloads/android-sdk-macosx/platform-tools/framework/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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, /var/folders/01/hrx97dzs7899185vrzr80kyr0000gn/T/APKTOOL2624270228037310506.tmp, -x, -S, /Users/xyz/Downloads/android-sdk-macosx/platform-tools/framework/res, -M, /Users/xyz/Downloads/android-sdk-macosx/platform-tools/framework/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more

What's going on there?

Thank you :)

McDV