4

I've recently begun programming.

I've been following this tutorial to extract a source code from my APK file on my MacBook Pro:

https://www.youtube.com/watch?v=-AX4NYE-9V8

All the steps worked well until I tried the command "sh dex2jar.sh classes.dex". My Terminal gives me this message:

 dex2jar version: translator-0.0.9.8
dex2jar classes.dex -> classes_dex2jar.jar
. while process file: [classes.dex]
.. ROOT cause:
java.lang.StringIndexOutOfBoundsException: String index out of range: 2
    at java.lang.String.checkBounds(String.java:375)
    at java.lang.String.<init>(String.java:535)
    at com.googlecode.dex2jar.reader.DexFileReader.readDex(DexFileReader.java:122)
    at com.googlecode.dex2jar.reader.DexFileReader.readDex(DexFileReader.java:149)
    at com.googlecode.dex2jar.v3.Main.doFile(Main.java:63)
    at com.googlecode.dex2jar.v3.Main.main(Main.java:85)
Done.

I do not get a "classes_dex2jar.jar" file.

What's happening?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
AppY
  • 51
  • 3
  • dex2jar is an [open-source tool](https://github.com/pxb1988/dex2jar). Make sure you're using latest version, and if you still experience same behavior, open an issue [here](https://github.com/pxb1988/dex2jar/issues), or alternatively compile the sources and try to figure out what's the problem by debugging it. – Alex Lipov May 09 '16 at 07:45

0 Answers0