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
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...
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"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...