Android Question Timeout Convert byte code - optimized dex. - Debug

FabioC

Member
Licensed User
Hello,
after I've downloaded the recommended Sdk from the manager B4A doesn't compile anymore.

Compiling generated Java code. (5.08s)
Convert byte code - optimized dex. Error
Process timed out.

I've already increased the MaxRamForDex to 2048, but nothing has changed.

Also note that this problem occurs only when I'm compiling in Debug, it works fine on Release.

Does anybody know how to fix this?

Thank you.
 

FabioC

Member
Licensed User
Update: It's caused by FirebaseAdMob, the compilation works if I remove the reference to the library (it was working until I updated all the recommended in the SDK Manager), I've also increased the timeout (120 sec.), and now this is the message:

java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.zip.InflaterInputStream.<init>(InflaterInputStream.java:88)
at java.util.zip.ZipFile$ZipFileInflaterInputStream.<init>(ZipFile.java:408)
at java.util.zip.ZipFile.getInputStream(ZipFile.java:389)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:270)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:756)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:650)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:315)
at com.android.dx.command.dexer.Main.runDx(Main.java:293)
at com.android.dx.command.dexer.Main.main(Main.java:249)
at com.android.dx.command.Main.main(Main.java:94)
*** Legacy debugger is deprecated. ***
It is recommended to switch to the default debugger (Tools - IDE Options).
 
Upvote 0

FabioC

Member
Licensed User
Erel, my bad,
As I mentioned I did change it to 2048, but I probably did it while B4A was open so it got overwritten back to 1024.

it works now.
Thank you.
 
Upvote 0
Top