Android Question [ SOLVED ] Compiling big app

Lello1964

Well-Known Member
Licensed User
Longtime User
I'm developing an app with more activity & about 37 modul's.
when i comple i have this err :

B4A Versione: 8.30
Analisi del Codice. (0.37s)
Compilazione del codice. (1.14s)
Compilazione del codice di layouts (0.19s)
Organizzazione Librerie. (0.00s)
Generazione file R. (1.61s)
Compilazione del codice debugger. (5.36s)
Compilazione del codice Java prodotto. (7.57s)
Conversione byte code - ottimizzazione dex. Error
Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
2 errors; aborting

have someone the solution?
 
trying to compile again :

B4A Versione: 8.30
Analisi del Codice. (0.37s)
Compilazione del codice. (1.11s)
Compilazione del codice di layouts (0.19s)
Organizzazione Librerie. (0.00s)
Generazione file R. (1.60s)
Compilazione del codice debugger. (5.63s)
Compilazione del codice Java prodotto. (7.60s)
Conversione byte code - ottimizzazione dex. Error
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space
 
Upvote 0
trying to compile again :

B4A Versione: 8.30
Analisi del Codice. (0.37s)
Compilazione del codice. (1.11s)
Compilazione del codice di layouts (0.19s)
Organizzazione Librerie. (0.00s)
Generazione file R. (1.60s)
Compilazione del codice debugger. (5.63s)
Compilazione del codice Java prodotto. (7.60s)
Conversione byte code - ottimizzazione dex. Error
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space

Add this line in Manifest.
Code:
SetApplicationAttribute(android:largeHeap, "true")
 
Upvote 0
i have found this solution by Erel but can't locate b4a ini file

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=2048

Note that you must do this change when Basic4android 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).
 
Upvote 0
i have found this solution by Erel but can't locate b4a ini file

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=2048

Note that you must do this change when Basic4android 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).

Hi.

The AppData folder is hidden by default in Windows. You must activate in Windows Explorer the option to show hidden files.

For 8.30 version the current ini file is b4xV5.ini


Rubén
 
Upvote 0
i'm sorry, havn't saw: C:\Users\<Your user name>\AppData\Roaming\Anywhere Software\Basic4android

in AppData !!

thanks

solved.
 
Upvote 0
Back
Top