org.jf.util.ExceptionWithContext: Invalid element width: 0
at org.jf.dexlib2.dexbacked.instruction.DexBackedArrayPayload.getArrayElements(DexBackedArrayPayload.java:109)
at org.jf.baksmali.Adaptors.Format.ArrayDataMethodItem.writeTo(ArrayDataMethodItem.java:53)
at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:240)
at org.jf.baksmali.Adaptors.ClassDefinition.writeDirectMethods(ClassDefinition.java:281)
at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:111)
at org.jf.baksmali.Baksmali.disassembleClass(Baksmali.java:152)
at org.jf.baksmali.Baksmali.access$000(Baksmali.java:46)
at org.jf.baksmali.Baksmali$1.call(Baksmali.java:76)
at org.jf.baksmali.Baksmali$1.call(Baksmali.java:74)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Problems are the Smalis, don't know exactly why.
Looks like an upstream issue with smali - https://github.com/JesusFreke/smali/issues/687
This also looks like it's similar/same as the https://github.com/JesusFreke/smali/issues/526 smali issue submitted a year +/- ago.
Possibly the same issue that might have creeped back up again @iBotPeaches?
~Ibuprophen
Be aware, they might took advanges of glitch exploits to prevent apktool from decompiling like they added file with blank file name inside. It can be resolved by deleting the file with blank file name using 7-Zip or Winrar
I can show you this glitch example

Error copying file: assets
at brut.androlib.Androlib.decodeRawFiles(Androlib.java:160)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:171)
at brut.apktool.Main.cmdDecode(Main.java:164)
at brut.apktool.Main.main(Main.java:73)
Caused by: brut.directory.DirectoryException: Error copying file: assets
at brut.directory.DirUtil.copyToDir(DirUtil.java:91)
at brut.directory.AbstractDirectory.copyToDir(AbstractDirectory.java:208)
at brut.androlib.Androlib.decodeRawFiles(Androlib.java:147)
... 3 more
Caused by: brut.directory.DirectoryException: Error copying file:
at brut.directory.DirUtil.copyToDir(DirUtil.java:88)
at brut.directory.DirUtil.copyToDir(DirUtil.java:61)
at brut.directory.AbstractDirectory.copyToDir(AbstractDirectory.java:198)
at brut.directory.DirUtil.copyToDir(DirUtil.java:77)
... 5 more
I have no idea how they did that lol but again, just showing. No need to fix it
There is new classes.dex glitch I just found. I will report new issue soon
And thanks for referencing my issue smali#687 haha :D
Upstream was fixed. Will be in v2.5.0
Most helpful comment
Be aware, they might took advanges of glitch exploits to prevent apktool from decompiling like they added file with blank file name inside. It can be resolved by deleting the file with blank file name using 7-Zip or Winrar
I can show you this glitch example
I have no idea how they did that lol but again, just showing. No need to fix it
There is new classes.dex glitch I just found. I will report new issue soon
And thanks for referencing my issue smali#687 haha :D