berkus / android-apktool

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

miliao.apk recompiling #212

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Decompile miliao.apk
2.add my sources (just "values" folder with translated xmls)
3.Recompile miliao.apk

Note: Same issue if you just decompile and recompile miliao.apk without changes

What is the expected output? What do you see instead?
Expected a regular apk recompiling but this is the log:
Exception in thread "main" brut.androlib.AndrolibException: 
brut.common.BrutException: could not exec command: [aapt, p, -F, 
C:\DOCUME~1\HP_ADM~1\IMPOST~1\Temp\APKTOOL1220222997280970068.tmp, -I, 
C:\Documents and Settings\HP_Administrator\apktool\framework\1.apk, -S, 
C:\Documents and 
Settings\HP_Administrator\Desktop\AutoAPKTool1.0.7\_INPUT_APK\miliao\res, -M, 
C:\Documents and 
Settings\HP_Administrator\Desktop\AutoAPKTool1.0.7\_INPUT_APK\miliao\AndroidMani
fest.xml]
    at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
    at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
    at brut.androlib.Androlib.buildResources(Unknown Source)
    at brut.androlib.Androlib.build(Unknown Source)
    at brut.androlib.Androlib.build(Unknown Source)
    at brut.apktool.Main.cmdBuild(Unknown Source)
    at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, 
C:\DOCUME~1\HP_ADM~1\IMPOST~1\Temp\APKTOOL1220222997280970068.tmp, -I, 
C:\Documents and Settings\HP_Administrator\apktool\framework\1.apk, -S, 
C:\Documents and 
Settings\HP_Administrator\Desktop\AutoAPKTool1.0.7\_INPUT_APK\miliao\res, -M, 
C:\Documents and 
Settings\HP_Administrator\Desktop\AutoAPKTool1.0.7\_INPUT_APK\miliao\AndroidMani
fest.xml]
    at brut.util.OS.exec(Unknown Source)
    ... 7 more
C:\Documents and 
Settings\HP_Administrator\Desktop\AutoAPKTool1.0.7\_INPUT_APK\miliao\res\values\
styles.xml:105: error: Error: Integer types not allowed (at 
'android:textSelectHandleRight' with value '1').

What version of the product are you using? On what operating system?
1.3.2 on Windows, tried also with 1.4.1

Please provide any additional information below.
I can't understand this error: Error: Integer types not allowed (at 
'android:textSelectHandleRight' with value '1'), how could I recompile the apk 
? Thanks in advance :)

Original issue reported on code.google.com by cognon.m...@gmail.com on 31 Aug 2011 at 10:49

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed.

Original comment by cognon.m...@gmail.com on 16 Dec 2011 at 8:37

GoogleCodeExporter commented 9 years ago
How did you fix it? I also got this problem and don't know how to solve

Original comment by mrill...@gmail.com on 16 Dec 2011 at 9:08

GoogleCodeExporter commented 9 years ago
Try to change values from 1 to @null , but in last versions I did't have that 
issue.

Original comment by cognon.m...@gmail.com on 16 Dec 2011 at 9:16

GoogleCodeExporter commented 9 years ago
and did you solve the problem with that "brut.common.BrutException: could not 
exec command: [aapt" and so on? my apktool won't build an APK...

Original comment by mrill...@gmail.com on 16 Dec 2011 at 9:33

GoogleCodeExporter commented 9 years ago
My issue at that time was:

Error: Integer types not allowed (at 'android:textSelectHandleRight' with value 
'1')

Changing the value worked for me with that.

Try also to use updated version of apktool and the latest version of 
miliao.apk, it works perfecly now.

Original comment by cognon.m...@gmail.com on 16 Dec 2011 at 9:39

GoogleCodeExporter commented 9 years ago

Original comment by connor.tumbleson on 17 Nov 2012 at 6:39