Android Question Cannot compile old project after update SDK

JLS

Member
Licensed User
Longtime User
I have update today (jan, 24) the SDK. Since then, when I try to compile an old Project, I get the following message:

B4A version: 5.50
Parsing code. (0.05s)
Compiling code. (0.14s)
Compiling layouts code. (0.04s)
Generating R file. (0.38s)
Compiling generated Java code. (1.24s)
Convert byte code - optimized dex. Error
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space
at com.android.dx.cf.code.ExecutionStack.<init>(ExecutionStack.java:55)
at com.android.dx.cf.code.ExecutionStack.copy(ExecutionStack.java:66)
at com.android.dx.cf.code.Frame.copy(Frame.java:98)
at com.android.dx.cf.code.Ropper.processBlock(Ropper.java:786)
at com.android.dx.cf.code.Ropper.doit(Ropper.java:742)
at com.android.dx.cf.code.Ropper.convert(Ropper.java:349)
at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:280)
at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:137)
at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:93)
at com.android.dx.command.dexer.Main.processClass(Main.java:729)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)
at com.android.dx.command.dexer.Main.access$300(Main.java:82)
at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
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:632)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:279)
at com.android.dx.command.dexer.Main.run(Main.java:245)
at com.android.dx.command.dexer.Main.main(Main.java:214)
at com.android.dx.command.Main.main(Main.java:106)

If I restore the old Android folder it Works fine again.

Anybody could tell me what's the problem?

Thanks in advance.
 
Same problem with beta 5.8 version.

Using the CRWear example;
First tried to compile the wearable project which failed with time outs and UNEXPECTED TOP-LEVEL ERROR etc... so increased the MaxRamForDex so 2048 which solved that one. *** although no apk was produced ***?
Then tried to compile the handheld project; sill getting UNEXPECTED TOP-LEVEL ERROR even after upping the MaxRam value to 4096.

These are quite small projects; one of my much larger projects (13 complex activities) compiles just fine.

Anything else I can try?

Thanks
 
Upvote 0
Can you post the full error message?


upload_2016-2-22_11-7-41.png


Thanks
 
Upvote 0
I don't think that this issue is related to v5.80. Are you sure that you changed MaxRamForDex while the IDE was closed?
I did fall into that trap first time round but then edited the file and even rebooted PC then checked it again after trying to compile.
upload_2016-2-22_11-26-47.png

I take it that this is the correct ini file...?
Thanks
 
Upvote 0
Back
Top