desword / android-apktool

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

Apktool, Smali error #536

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Compiling
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
apktool 1.5.2 on Windows 8.1 RTM

Please provide any additional information below.
I tried compile SystemUI folder and I getting this errors
How can I fix this errors. Sorry, my english sucks

C:\Apktool>apktool b SystemUI
I: Checking whether sources has changed...
I: Smaling...
[0,0] No enum constant org.jf.dexlib.AnnotationVisibility.RUNT¦ME
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file
: C:\Apktool\SystemUI\smali\com\android\systemui\statusbar\AnimatedImageView.sma
li
        at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)

        at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)

        at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:66)
        at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
        at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:37)
        at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:257)
        at brut.androlib.Androlib.buildSources(Androlib.java:214)
        at brut.androlib.Androlib.build(Androlib.java:205)
        at brut.androlib.Androlib.build(Androlib.java:176)
        at brut.apktool.Main.cmdBuild(Main.java:228)
        at brut.apktool.Main.main(Main.java:79)

Original issue reported on code.google.com by ysarbu...@gmail.com on 18 Oct 2013 at 8:52

GoogleCodeExporter commented 9 years ago
Change your system language on your computer to something else like English and 
then try.

Original comment by connor.tumbleson on 18 Oct 2013 at 8:55

GoogleCodeExporter commented 9 years ago
I changed my system language and then I tried again.

I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'data_connection_datach_timeout_error_msg' has no default 
translation in /home/yunusmessi/apktool/SystemUI/res; found: de es fr in it ms 
pt ru th tr vi zh_TW
aapt: warning: string 'dreams_dock_launcher' has no default translation in 
/home/yunusmessi/apktool/SystemUI/res; found: my_MM
/home/yunusmessi/apktool/SystemUI/res/values/arrays.xml:36: error: Error 
parsing XML: mismatched tag
Exception in thread "main" brut.androlib.AndrolibException: 
brut.androlib.AndrolibException: brut.common.BrutException: could not exec 
command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, 
/tmp/APKTOOL4136256838821302378.tmp, -0, arsc, -I, 
/home/yunusmessi/apktool/framework/1.apk, -S, 
/home/yunusmessi/apktool/SystemUI/res, -M, 
/home/yunusmessi/apktool/SystemUI/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, 17, --target-sdk-version, 17, 
-F, /tmp/APKTOOL4136256838821302378.tmp, -0, arsc, -I, 
/home/yunusmessi/apktool/framework/1.apk, -S, 
/home/yunusmessi/apktool/SystemUI/res, -M, 
/home/yunusmessi/apktool/SystemUI/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, 17, --target-sdk-version, 17, -F, 
/tmp/APKTOOL4136256838821302378.tmp, -0, arsc, -I, 
/home/yunusmessi/apktool/framework/1.apk, -S, 
/home/yunusmessi/apktool/SystemUI/res, -M, 
/home/yunusmessi/apktool/SystemUI/AndroidManifest.xml]
    at brut.util.OS.exec(OS.java:89)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
    ... 6 more

Original comment by ysarbu...@gmail.com on 18 Oct 2013 at 9:54

GoogleCodeExporter commented 9 years ago
I tried again and my error is changed. Here is the my new error

C:\Apktool>apktool b SystemUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'data_connection_datach_timeout_error_msg' has no default
translation in C:\Apktool\SystemUI\res; found: de es fr in it ms pt ru th tr vi
zh_TW
aapt: warning: string 'dreams_dock_launcher' has no default translation in C:\Ap
ktool\SystemUI\res; found: my_MM
I: Building apk file...

Original comment by ysarbu...@gmail.com on 18 Oct 2013 at 10:33

GoogleCodeExporter commented 9 years ago
Thank you so much, I tried again and I fixed it with your helping

Original comment by ysarbu...@gmail.com on 18 Oct 2013 at 10:36