Closed b0123456789 closed 3 years ago
linux run success ,nut window not.
This issue is related to the JVM itself.
An OutOfMemoryError
can nearly always be fixed by using the -Xmx
parameter for the JVM.
Look here for details: https://alvinalexander.com/blog/post/java/java-xmx-xms-memory-heap-size-control/
Decompiler not completely and not log any error.
Show with jd-gui. com/baidu/megapp/callback/MegappCallbackController.class
This issue is not related to dex2jar, but rather to the decompiler you chose. In fact, dex2jar is not a decompiler and just translates dex to jar files (which contain bytecode).
dex2jar ../com.ss.android.ugc.aweme.lite.apk -> .\com.ss.android.ugc.aweme.lite-dex2jar.jar Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOfRange(Unknown Source) at java.lang.String.(Unknown Source)
at java.lang.StringBuilder.toString(Unknown Source)
at com.googlecode.d2j.util.Mutf8.decode(Mutf8.java:42)
at com.googlecode.d2j.reader.DexFileReader.getString(DexFileReader.java:1034)
at com.googlecode.d2j.reader.DexFileReader.getType(DexFileReader.java:1044)
at com.googlecode.d2j.reader.DexFileReader.getMethod(DexFileReader.java:1022)
at com.googlecode.d2j.reader.DexFileReader.acceptInsn(DexFileReader.java:1728)
at com.googlecode.d2j.reader.DexFileReader.acceptCode(DexFileReader.java:1489)
at com.googlecode.d2j.reader.DexFileReader.acceptMethod(DexFileReader.java:1142)
at com.googlecode.d2j.reader.DexFileReader.acceptClass(DexFileReader.java:918)
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)