B4A Question How to change MaxRamForDex value - toby    
Jan 27, 2021The compiler is having "out of memory" error. Where can I set/change MaxRamForDex value, i. e., MaxRamForDex=4000?...
link: Software\Basic4android
2. Edit b4xV5.ini and change MaxRamForDex to 4000....
B4A Question MaxRamForDex=20000 does not help for XOM lib v.1.2 (in big project) - peacemaker    
Apr 26, 2020/google/android/gms/common/util/VisibleForTesting;
1 error; aborting
...even with MaxRamForDex=20000 in... engine code. (0.02s)
Compiling generated Java code. (0.05s)
Convert byte code - optimized dex...
link: .s. helped:
#ExcludeClasses: com.google/android/gms/common/util/VisibleFor...
link: You need to find which library includes this class....
link: Aah, really, the latest line is about it. Other libs, seems, of Google maps. That is under trouble, ...
B4A Question Can't increase MaxRamForDex - MrKim    
Feb 20, 2018I am trying to increase MaxRamForDex from 512 to 1028 but compile throws the following error.... Error
Error occurred during initialization of VM
Could not reserve enough space for 1052672KB object...
link: It looks like a network issue. Maybe you need to configure the proxy settings in the IDE....
link: Then it seems you need to use a newer version of Java 8
Check the results here https://www.b4x.com/...
link: update to java 8
According to the screenshot above, 'About Java' I am running 8...
B4A Question Cannot increase MaxRamForDex - Erel (first post)    
Jan 27, 2021   
(1 reaction)You should never post in old threads. The correct answer is to modify MaxRamForDex (if needed). Any other setting will not have any effect....
link: -Xmx512m -Xms512m which is what mine is set to. You can actually set it to anything you like for...
link: 1. It is slower in release mode.
2. The time should change based on the optimized dexer state. If yo...
link: previously saved with 64bit java.
Tried again and now I'm able to use even MaxRamForDex=8192...
B4A Question Convert byte code - optimized dex. Error - Need Help Pls :( - Erel (first post)    
Mar 16, 2020   
(5 reactions)You can increase the memory size that the dexer process is allowed to use.
Open the ini file that is located in:
C:\Users\<Your user name>\AppData\Roaming\Anywhere Software\Basic4android
Change this line:
MaxRamForDex=1024
To:
MaxRamForDex=3000
Note that you must do this change when B4A is closed. Otherwise it will override the change when it gets closed (and it reads it only when it opens).
You can also disable the debugger (Project - Attach debugger)....
B4A Question how to speed up compile steps - sirjo66 (first post)    
Aug 20, 2026
Dex code + merge are usually much faster.
Try to increase MaxRamForDex: https://www.b4x.com/android/forum/threads/how-to-change-maxramfordex-value.126997/#content
0. Close the IDE.
1. Go to C:\Users\<your user>\AppData\Roaming\Anywhere Software\Basic4android
2. Edit b4xV5.ini and change MaxRamForDex to 4000.
I'm using an old laptop PC with only 8 GB ram.
MaxRamForDex = 4000...
link: Dex code + merge are usually much faster. Try to increase MaxRamForDex: https://www.b4x.com/android...
B4A Question Running NLG (NativeLibraryGenerator) - aedwall (first post)    
Apr 27, 2025I finally found a reference that said I should change this:
MaxRamForDex=2048
to this:
MaxRamForDex=512
in the
"b4xV5.ini" file.
That made it work. But so much time and energy lost trying to find it.
Thank you for your help....
B4A Question First issue with B4A 14.20 beta R8 - asales (first post)    
Sep 30, 2026
About the time out:
Make sure that MaxRamForDex is at least 4192
Close B4A. Edit the ini file: C:\Users\<user name>\AppData\Roaming\Anywhere Software\Basic4android
b4xV5.ini
Thanks.
It was 4096. I changed to 6000.
Libs:
173835...
link: issues if missing.
About the time out:
Make sure that MaxRamForDex is at least 4192
Close B4A. Edit...
B4A Question Speeding up compile step? - Erel (first post)    
Jan 25, 2026
Compiling generated Java code. (27.04s)
This is indeed slow. Make a test - restart the PC, assuming that now there will be more RAM available, try to compile a few times. Is it still that slow?
Have you modified MaxRamForDex in the ini file? It should be at least 2048....
link: available, try to compile a few times. Is it still that slow?
Have you modified MaxRamForDex in the ini...
B4A Question VM object heap space - Solved for Win7 32bit 2G - 3fazeac    
Jun 16, 2020 example GPS code I get the 'Could not reserve enough space for 2097152KB object heap' error.
I've looked through the forum and the MaxRamForDex is mentioned in several posts - but where is this variable?
Please can someone tell me how to modify the MaxRamForDex variable.
Am I likely to get B4A running on my 32bit windows7 2GB RAM machine?
Thank you.... Windows7 32 bit laptop which has 2G RAM installed.
I've also installed the lasted B4A release 9...
Page: 1  
2  
3  
4  
5  
6  
7