[Android Software Development] singh_dd93:
I am trying to compile for SK17i and I get the foloowing errors

dds@singh-dd93:~$ cd miui
dds@singh-dd93:~/miui$ . build/envsetup.sh
PORT_ROOT = /home/dds/miui
ANDROID_TOP =
ANDROID_OUT =
PORT_PRODUCT = Unknown
USE_ANDROID_OUT =
ANDROID_BRANCH =
dds@singh-dd93:~/miui$ cd sk17
dds@singh-dd93:~/miui/sk17$ make fullota
unzip >/dev/null stockrom.zip -d out/ZIP
>>> Install framework resources for apktool...
install framework-miui-res.apk
/home/dds/miui/tools/apktool --quiet if /home/dds/miui/miui/system/framework/framework-miui-res.apk
unzip >/dev/null stockrom.zip "system/framework/*.apk" -d out
install out/system/framework/SemcGenericUxpRes.apk
install out/system/framework/framework-res.apk
<<< install framework resources completed!
>>> build out/framework-res.apk...
add miui overlay resources
/home/dds/miui/tools/remove_redef.py >/dev/null out/framework-res
/home/dds/miui/tools/apktool --quiet b out/framework-res out/framework-res.apk
/home/dds/miui/tools/apktool --quiet if out/framework-res.apk
<<< build out/framework-res.apk completed!
>>> build out/framework-miui-res.apk...
/home/dds/miui/tools/apktool --quiet d -f /home/dds/miui/miui/system/framework/framework-miui-res.apk out/framework-miui-res
ls: cannot access overlay/framework-miui-res/res/[^v]*: No such file or directory
ls: cannot access overlay/framework-miui-res/res/values*: No such file or directory
/home/dds/miui/tools/apktool --quiet b out/framework-miui-res out/framework-miui-res.apk
<<< build out/framework-miui-res.apk completed!
/home/dds/miui/tools/apktool --quiet d -f /home/dds/miui/miui/system/framework/services.jar out/services_miui
>>> build out/services.jar...
/home/dds/miui/tools/add_miui_smail.sh >/dev/null out/services_miui out/services
/home/dds/miui/tools/apktool --quiet b out/services out/services.jar
/home/dds/miui/tools/prepare_preloaded_classes.sh >/dev/null stockrom.zip out/services /home/dds/miui/miui/system/framework
<<< build out/services.jar completed!
/home/dds/miui/tools/apktool --quiet d -f /home/dds/miui/miui/system/framework/android.policy.jar out/android.policy_miui
>>> build out/android.policy.jar...
/home/dds/miui/tools/add_miui_smail.sh >/dev/null out/android.policy_miui out/android.policy
/home/dds/miui/tools/apktool --quiet b out/android.policy out/android.policy.jar
/home/dds/miui/tools/prepare_preloaded_classes.sh >/dev/null stockrom.zip out/android.policy /home/dds/miui/miui/system/framework
<<< build out/android.policy.jar completed!
/home/dds/miui/tools/apktool --quiet d -f /home/dds/miui/miui/system/framework/framework.jar out/framework_miui
>>> build out/framework.jar...
/home/dds/miui/tools/add_miui_smail.sh >/dev/null out/framework_miui out/framework
/home/dds/miui/tools/apktool --quiet b out/framework out/framework.jar
/home/dds/miui/tools/prepare_preloaded_classes.sh >/dev/null stockrom.zip out/framework /home/dds/miui/miui/system/framework
<<< build out/framework.jar completed!
>>> build out/SemcCamera3D.apk...
/home/dds/miui/tools/apktool --quiet b out/SemcCamera3D out/SemcCamera3D.apk
aapt: warning: string 'cam_strings_advanced_setting_photometry_center_txt' has no default translation in /home/dds/miui/sk17/out/SemcCamera3D/res; found: en_CA
<<< build out/SemcCamera3D.apk completed!
>>> build out/CustomizedSettings.apk...
/home/dds/miui/tools/apktool --quiet b out/CustomizedSettings out/CustomizedSettings.apk
<<< build out/CustomizedSettings.apk completed!
>>> build out/MediaProvider.apk...
/home/dds/miui/tools/apktool --quiet b out/MediaProvider out/MediaProvider.apk
<<< build out/MediaProvider.apk completed!
/home/dds/miui/tools/apktool --quiet d -f /home/dds/miui/miui/system/app/MiuiHome.apk out/MiuiHome
/home/dds/miui/tools/patch_miui_app.sh >/dev/null MiuiHome out/MiuiHome
>>> build out/MiuiHome.apk...
/home/dds/miui/tools/apktool --quiet b out/MiuiHome out/MiuiHome.apk
invalid resource directory name: /home/dds/miui/sk17/out/MiuiHome/res/values-w320dp-largeui-hdpi
invalid resource directory name: /home/dds/miui/sk17/out/MiuiHome/res/values-w360dp-hugeui-hdpi
invalid resource directory name: /home/dds/miui/sk17/out/MiuiHome/res/values-w360dp-largeui-hdpi
invalid resource directory name: /home/dds/miui/sk17/out/MiuiHome/res/values-w360dp-hugeui-xhdpi
invalid resource directory name: /home/dds/miui/sk17/out/MiuiHome/res/values-largeui-xhdpi
invalid resource directory name: /home/dds/miui/sk17/out/MiuiHome/res/values-hugeui-xhdpi
invalid resource directory name: /home/dds/miui/sk17/out/MiuiHome/res/drawable-hugeui-hdpi
invalid resource directory name: /home/dds/miui/sk17/out/MiuiHome/res/values-w360dp-largeui-xhdpi
invalid resource directory name: /home/dds/miui/sk17/out/MiuiHome/res/values-w320dp-hugeui-hdpi
invalid resource directory name: /home/dds/miui/sk17/out/MiuiHome/res/values-largeui-hdpi
invalid resource directory name: /home/dds/miui/sk17/out/MiuiHome/res/drawable-largeui-hdpi
invalid resource directory name: /home/dds/miui/sk17/out/MiuiHome/res/values-hugeui-hdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL7581720702812602292.tmp, -I, /home/dds/apktool/framework/1.apk, -I, /home/dds/apktool/framework/6.apk, -S, /home/dds/miui/sk17/out/MiuiHome/res, -M, /home/dds/miui/sk17/out/MiuiHome/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, /tmp/APKTOOL7581720702812602292.tmp, -I, /home/dds/apktool/framework/1.apk, -I, /home/dds/apktool/framework/6.apk, -S, /home/dds/miui/sk17/out/MiuiHome/res, -M, /home/dds/miui/sk17/out/MiuiHome/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
make: *** [out/MiuiHome.apk] Error 1
dds@singh-dd93:~/miui/sk17$

So i tried to compile for lt18i still getting the same error

dds@singh-dd93:~/miui/lt18i$ make fullota
>>> build out/framework-res.apk...
add miui overlay resources
/home/dds/miui/tools/remove_redef.py >/dev/null out/framework-res
/home/dds/miui/tools/apktool --quiet b out/framework-res out/framework-res.apk
/home/dds/miui/tools/apktool --quiet if out/framework-res.apk
<<< build out/framework-res.apk completed!
>>> build out/framework-miui-res.apk...
/home/dds/miui/tools/apktool --quiet d -f /home/dds/miui/miui/system/framework/framework-miui-res.apk out/framework-miui-res
ls: cannot access overlay/framework-miui-res/res/[^v]*: No such file or directory
ls: cannot access overlay/framework-miui-res/res/values*: No such file or directory
/home/dds/miui/tools/apktool --quiet b out/framework-miui-res out/framework-miui-res.apk
<<< build out/framework-miui-res.apk completed!
/home/dds/miui/tools/apktool --quiet d -f /home/dds/miui/miui/system/framework/services.jar out/services_miui
>>> build out/services.jar...
/home/dds/miui/tools/add_miui_smail.sh >/dev/null out/services_miui out/services
/home/dds/miui/tools/apktool --quiet b out/services out/services.jar
/home/dds/miui/tools/prepare_preloaded_classes.sh >/dev/null stockrom.zip out/services /home/dds/miui/miui/system/framework
<<< build out/services.jar completed!
/home/dds/miui/tools/apktool --quiet d -f /home/dds/miui/miui/system/framework/android.policy.jar out/android.policy_miui
>>> build out/android.policy.jar...
/home/dds/miui/tools/add_miui_smail.sh >/dev/null out/android.policy_miui out/android.policy
/home/dds/miui/tools/apktool --quiet b out/android.policy out/android.policy.jar
/home/dds/miui/tools/prepare_preloaded_classes.sh >/dev/null stockrom.zip out/android.policy /home/dds/miui/miui/system/framework
<<< build out/android.policy.jar completed!
/home/dds/miui/tools/apktool --quiet d -f /home/dds/miui/miui/system/framework/framework.jar out/framework_miui
>>> build out/framework.jar...
/home/dds/miui/tools/add_miui_smail.sh >/dev/null out/framework_miui out/framework
/home/dds/miui/tools/apktool --quiet b out/framework out/framework.jar
/home/dds/miui/tools/prepare_preloaded_classes.sh >/dev/null stockrom.zip out/framework /home/dds/miui/miui/system/framework
<<< build out/framework.jar completed!
>>> build out/SemcCamera3D.apk...
/home/dds/miui/tools/apktool --quiet b out/SemcCamera3D out/SemcCamera3D.apk
aapt: warning: string 'cam_strings_advanced_setting_photometry_center_txt' has no default translation in /home/dds/miui/lt18i/out/SemcCamera3D/res; found: en_CA
<<< build out/SemcCamera3D.apk completed!
>>> build out/CustomizedSettings.apk...
/home/dds/miui/tools/apktool --quiet b out/CustomizedSettings out/CustomizedSettings.apk
<<< build out/CustomizedSettings.apk completed!
>>> build out/MediaProvider.apk...
/home/dds/miui/tools/apktool --quiet b out/MediaProvider out/MediaProvider.apk
<<< build out/MediaProvider.apk completed!
/home/dds/miui/tools/apktool --quiet d -f /home/dds/miui/miui/system/app/MiuiHome.apk out/MiuiHome
/home/dds/miui/tools/patch_miui_app.sh >/dev/null MiuiHome out/MiuiHome
>>> build out/MiuiHome.apk...
/home/dds/miui/tools/apktool --quiet b out/MiuiHome out/MiuiHome.apk
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-w320dp-largeui-hdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-w360dp-hugeui-hdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-w360dp-largeui-hdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-w360dp-hugeui-xhdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-largeui-xhdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-hugeui-xhdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/drawable-hugeui-hdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-w360dp-largeui-xhdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-w320dp-hugeui-hdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-largeui-hdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/drawable-largeui-hdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-hugeui-hdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL7470284248443911621.tmp, -I, /home/dds/apktool/framework/1.apk, -I, /home/dds/apktool/framework/6.apk, -S, /home/dds/miui/lt18i/out/MiuiHome/res, -M, /home/dds/miui/lt18i/out/MiuiHome/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, /tmp/APKTOOL7470284248443911621.tmp, -I, /home/dds/apktool/framework/1.apk, -I, /home/dds/apktool/framework/6.apk, -S, /home/dds/miui/lt18i/out/MiuiHome/res, -M, /home/dds/miui/lt18i/out/MiuiHome/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
make: *** [out/MiuiHome.apk] Error 1
dds@singh-dd93:~/miui/lt18i$

even tried git reset

plz help