desword / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
1 stars 0 forks source link

Error Message: No resource identifier found for attribute 'layout_toStartOf' in package 'android' #574

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Decompile Maverick Pro v2.4.2.apk using apktool
2. Do some changes to the file AndroidManifest.xml (that probably won't be 
necessary)
3. Build the APK file again

What is the expected output? What do you see instead?
I expected a message indicating success, instead I get an error message:
i:\tools\APK-Multi-Tool\other>apktool b "Maverick Pro v2.4.2"
I: Using Apktool 2.0.0-Beta7 on Maverick Pro v2.4.2
I: Checking whether resources has changed...
I: Building resources...
i:\tools\APK-Multi-Tool\other\Maverick Pro 
v2.4.2\res\layout-xlarge-land-mdpi\place.xml:16: error: No resource identifier 
found for attribute 'layout_toStartOf'
 in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: 
brut.androlib.AndrolibException: brut.common.BrutException: could not exec 
command: [C:\Users\root\A
ppData\Local\Temp\brut_util_Jar_2180431538515940873.tmp, p, 
--forced-package-id, 127, --min-sdk-version, 7, --target-sdk-version, 19, 
--version-code, 65, --vers
ion-name, 2.4.2, -F, 
C:\Users\root\AppData\Local\Temp\APKTOOL913304077557088802.tmp, -0, arsc, -I, 
C:\Users\root\apktool\framework\1.apk, -S, i:\tools\APK-Multi
-Tool\other\Maverick Pro v2.4.2\res, -M, i:\tools\APK-Multi-Tool\other\Maverick 
Pro v2.4.2\AndroidManifest.xml]
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
        at brut.androlib.Androlib.buildResources(Androlib.java:362)
        at brut.androlib.Androlib.build(Androlib.java:285)
        at brut.androlib.Androlib.build(Androlib.java:258)
        at brut.apktool.Main.cmdBuild(Main.java:233)
        at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could 
not exec command: 
[C:\Users\root\AppData\Local\Temp\brut_util_Jar_21804315385159408
73.tmp, p, --forced-package-id, 127, --min-sdk-version, 7, 
--target-sdk-version, 19, --version-code, 65, --version-name, 2.4.2, -F, 
C:\Users\root\AppData\Local\
Temp\APKTOOL913304077557088802.tmp, -0, arsc, -I, 
C:\Users\root\apktool\framework\1.apk, -S, 
i:\tools\APK-Multi-Tool\other\Maverick Pro v2.4.2\res, -M, i:\tools
\APK-Multi-Tool\other\Maverick Pro v2.4.2\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:481)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
        ... 5 more
Caused by: brut.common.BrutException: could not exec command: 
[C:\Users\root\AppData\Local\Temp\brut_util_Jar_2180431538515940873.tmp, p, 
--forced-package-id, 1
27, --min-sdk-version, 7, --target-sdk-version, 19, --version-code, 65, 
--version-name, 2.4.2, -F, 
C:\Users\root\AppData\Local\Temp\APKTOOL913304077557088802.tm
p, -0, arsc, -I, C:\Users\root\apktool\framework\1.apk, -S, 
i:\tools\APK-Multi-Tool\other\Maverick Pro v2.4.2\res, -M, 
i:\tools\APK-Multi-Tool\other\Maverick Pr
o v2.4.2\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:89)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:475)
        ... 6 more

i:\tools\APK-Multi-Tool\other>

What version of the product are you using? On what operating system?
Apktool 2.0.0b7, Win7, APK-Multi-Tool wrapper apktool.bat

Please provide any additional information below.
Can you fix this? Or is it an issue for Maverick?
I can give you the file Maverick Pro v2.4.2.apk, but since I paid for it, I 
don't want to post it in public. 

Original issue reported on code.google.com by mux...@googlemail.com on 20 Dec 2013 at 9:07

GoogleCodeExporter commented 9 years ago
FrameworkFiles

Not a bug.

"layout_toStartOf" is a well known relative layout attribute. This means there 
is probably a fluke framework problem.

Original comment by connor.tumbleson on 22 Dec 2013 at 5:42