Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[SOLVED] Java Heap Size error with apktool 1.5.2 in linux

$
0
0
I decided to post this so it helps others who may search and search and try all the solutions offered except for the following one..
Im talking about the " java.lang.OutOfMemoryError: Java heap space XXXXXX" error you may get when using apktool to decompile large sized .apks (i.e. SecSettings.apk in any Samsung TW ROM).

Increasing Java heap size via the plethora of methods offered on google did not work for me.
What worked was the following:

- Grab the apktool file and find

Code:

javaOpts="-Xmx256M"
Change the 256 size to preferably 2048.
You can try 1024 and see if it works for you. 2048 is more than enough though, so no need to go any higher..

Hopefully this will be helpful to a "future friedrich420" who will be desperately trying to find the most obvious solution...

Viewing all articles
Browse latest Browse all 3614

Trending Articles