而且 enjarify 反编译出来的 jar ,内部类都是单独的文件,dex2jar 则都在一个文件
dex2jar
这个安装方式就不说了,教程很多,主要是遇到了下面这个问题
java.lang.StringIndexOutOfBoundsException: String index out of range: -2 at java.lang.String.substring(String.java:1967) at org.objectweb.asm.signature.SignatureReader.parseType(SignatureReader.java:169) at org.objectweb.asm.signature.SignatureReader.acceptType(SignatureReader.java:130) at org.objectweb.asm.commons.Remapper.mapSignature(Remapper.java:162) at org.objectweb.asm.commons.RemappingClassAdapter.visitField(RemappingClassAdapter.java:90) at org.objectweb.asm.ClassVisitor.visitField(ClassVisitor.java:272) at com.googlecode.d2j.dex.Dex2Asm.convertField(Dex2Asm.java:478) at com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:429) at com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:450) at com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:175) at com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:275) at com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:112) at com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:290) at com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:33)
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded at com.googlecode.d2j.reader.DexFileReader.readEncodedAnnotation(DexFileReader.java:976) at com.googlecode.d2j.reader.DexFileReader.readAnnotationItem(DexFileReader.java:962) at com.googlecode.d2j.reader.DexFileReader.readAnnotationSetItem(DexFileReader.java:954) at com.googlecode.d2j.reader.DexFileReader.acceptClass(DexFileReader.java:874) at com.googlecode.d2j.reader.DexFileReader.accept(DexFileReader.java:725) at com.googlecode.d2j.reader.MultiDexFileReader.accept(MultiDexFileReader.java:122) at com.googlecode.d2j.reader.MultiDexFileReader.accept(MultiDexFileReader.java:115) at com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:48) at com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:235) at com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:103) at com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:297) at com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:16)