Skip to content
Advertisement

java heap size error dex2jar android decompile solution?

i was working on a android project but my laptop was formatted so i lost all code but i had a signed apk of the file on my phone .. whenever i try to use dex2jar it stops converting mid way with this error. how can i increase the heap size or is there another way out. can i decompile an apk with the key it was signed with

JavaScript

Advertisement

Answer

Make a copy of the d2j-dex2jar.bat file, and edit it. Find the line that says this:

JavaScript

Change the -Xmx parameter to give yourself a larger maxheap size. Save it, and see if your modified BAT file works better. (There isn’t an elegant way to override the JVM settings in this script.)


Apparently … if you are using dex2jar-2.0, the file that you need to edit is d2j_invoke.bat.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement