[Android Software Development] Daniel D.:
Does my error has anything to do with apktool 1.5.2?

I'm trying to de- and recompile a ported apk (from Xperia Z Ultra to Xperia 2011 line by [MENTION=3962236]Pranav Pandey[/MENTION]) on Windows 7 x64. Pranav Pandey gave me the used framework, but I still get the following errors:

F:\Eigene Dateien\Downloads\Android Tools\APKTool>apktool b Z1PP_SemcClock Z1PP_SemcClock_2.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\alarm_alert.xml:5: error: Error: Integer types not allowed (at 'layoutDire
ction' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\alarm_alert.xml:6: error: Error: Integer types not allowed (at 'layoutDire
ction' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\alarm_alert_tablet_horizontal.xml:6: error: Error: Integer types not allow
ed (at 'layoutDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\alarm_alert_tablet_vertical.xml:8: error: Error: Integer types not allowed
(at 'layoutDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\alarm_alert_tablet_vertical.xml:18: error: Error: Integer types not allowe
d (at 'layoutDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\alarm_digital_clock.xml:2: error: Error: Integer types not allowed (at 'la
youtDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\alarm_time.xml:2: error: Error: Integer types not allowed (at 'layoutDirec
tion' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\alarm_time_delete.xml:2: error: Error: Integer types not allowed (at 'layo
utDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\alarm_week.xml:2: error: Error: Integer types not allowed (at 'layoutDirec
tion' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\context_menu_header.xml:2: error: Error: Integer types not allowed (at 'la
youtDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\current_time_tablet.xml:2: error: Error: Integer types not allowed (at 'la
youtDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\current_time_tablet.xml:5: error: Error: Integer types not allowed (at 'la
youtDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\desk_clock_ics.xml:2: error: Error: Integer types not allowed (at 'layoutD
irection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\desk_clock_ics.xml:8: error: Error: Integer types not allowed (at 'layoutD
irection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\desk_clock_tablet.xml:2: error: Error: Integer types not allowed (at 'layo
utDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\desk_clock_tablet.xml:5: error: Error: Integer types not allowed (at 'layo
utDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\desk_clock_tablet.xml:6: error: Error: Integer types not allowed (at 'layo
utDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\desk_clock_tablet.xml:8: error: Error: Integer types not allowed (at 'layo
utDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\desk_clock_time_date_tablet.xml:4: error: Error: Integer types not allowed
(at 'layoutDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\desk_clock_time_date_tablet.xml:5: error: Error: Integer types not allowed
(at 'layoutDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\lap_item_tablet.xml:2: error: Error: Integer types not allowed (at 'layout
Direction' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\main.xml:4: error: Error: Integer types not allowed (at 'layoutDirection'
with value '0').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout-land\stopwatch.xml:2: error: Error: Integer types not allowed (at 'layoutD
irection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout-land\stopwatch.xml:5: error: Error: Integer types not allowed (at 'layoutD
irection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout-land\stopwatch.xml:10: error: Error: Integer types not allowed (at 'layout
Direction' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\timer.xml:2: error: Error: Integer types not allowed (at 'layoutDirection'
with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout-land\timer.xml:2: error: Error: Integer types not allowed (at 'layoutDirec
tion' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\world_clock_list_tablet_item.xml:5: error: Error: Integer types not allowe
d (at 'layoutDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\world_clock_list_tablet_item.xml:6: error: Error: Integer types not allowe
d (at 'layoutDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\world_clock_list_tablet_item.xml:7: error: Error: Integer types not allowe
d (at 'layoutDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\world_clock_list_tablet_item.xml:9: error: Error: Integer types not allowe
d (at 'layoutDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\world_clock_list_tablet_item.xml:10: error: Error: Integer types not allow
ed (at 'layoutDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\world_clock_list_tablet_item.xml:11: error: Error: Integer types not allow
ed (at 'layoutDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\world_clock_weather_source.xml:2: error: Error: Integer types not allowed
(at 'layoutDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout-land\worldclock.xml:2: error: Error: Integer types not allowed (at 'layout
Direction' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\worldclock_compare.xml:2: error: Error: Integer types not allowed (at 'lay
outDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\worldclock_compare_tablet.xml:2: error: Error: Integer types not allowed (
at 'layoutDirection' with value '3').
F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res\layout\worldclock_list.xml:4: error: Error: Integer types not allowed (at 'layout
Direction' with value '3').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt,
p, --min-sdk-version, 15, --target-sdk-version, 17, -F, C:\Users\Daniel\AppData\Local\Temp\APKTOOL5235313673501833388.tmp, -0, arsc, -I, C:\Users\Dan
iel\apktool\framework\1.apk, -S, F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res, -M, F:\Eigene Dateien\Downloads\Android Tools\A
PKTool\Z1PP_SemcClock\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version,
17, -F, C:\Users\Daniel\AppData\Local\Temp\APKTOOL5235313673501833388.tmp, -0, arsc, -I, C:\Users\Daniel\apktool\framework\1.apk, -S, F:\Eigene Dateie
n\Downloads\Android Tools\APKTool\Z1PP_SemcClock\res, -M, F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 17, -F, C:\Users\Daniel\AppData\L
ocal\Temp\APKTOOL5235313673501833388.tmp, -0, arsc, -I, C:\Users\Daniel\apktool\framework\1.apk, -S, F:\Eigene Dateien\Downloads\Android Tools\APKTool
\Z1PP_SemcClock\res, -M, F:\Eigene Dateien\Downloads\Android Tools\APKTool\Z1PP_SemcClock\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more

F:\Eigene Dateien\Downloads\Android Tools\APKTool>

I think it has to do with the different APIs and tried many apktool packages including yours (v1.5.2), the one of Rizal Lovins and the aapt.exe files from the Android SDK (17, 18.0.1 & 18.1). I'm not an expert, but if anybody can say where I've to start it would be great. I even tried to change the mentioned code with the expressions of API 15, but after every change there comes even more lines. I stopped after 45 minutes of changing dozens of strings.