zdzhjx / android-apktool

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

Exception in thread "main" org.jf.util.ExceptionWithContext: Unsigned short value out of range: 65565 #768

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. My apk has about 7000 smali files in classes.dex
2. When repacking, I get the following exception

What is the expected output? What do you see instead?
Exception in thread "main" org.jf.util.ExceptionWithContext: Unsigned short 
value out of range: 65565
    at org.jf.dexlib2.writer.DexDataWriter.writeUshort(DexDataWriter.java:116)
    at org.jf.dexlib2.writer.InstructionWriter.write(InstructionWriter.java:312)
    at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:980)
    at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:759)
    at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:214)
    at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:192)
    at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:57)
    at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
    at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:349)
    at brut.androlib.Androlib.buildSources(Androlib.java:289)
    at brut.androlib.Androlib.build(Androlib.java:275)
    at brut.androlib.Androlib.build(Androlib.java:250)
    at brut.apktool.Main.cmdBuild(Main.java:225)
    at brut.apktool.Main.main(Main.java:84)

What version of the product are you using? On what operating system?
RC3

Please provide any additional information below.

Original issue reported on code.google.com by codehe...@gmail.com on 26 Feb 2015 at 2:58

GoogleCodeExporter commented 9 years ago
This is blocking us from moving forward.  I tried 2.0.0 RC4 as well and I got 
the same issue

Original comment by codehe...@gmail.com on 26 Feb 2015 at 3:01

GoogleCodeExporter commented 9 years ago
You've hit the max methods in a dex file (65536).

Don't see how this is a bug with Apktool.

Original comment by connor.tumbleson on 26 Feb 2015 at 3:04