Android Question Takes a long time to compile in Legacy debug.

markcasio

Member
Licensed User
Longtime User
Hi,

After the latest update 13.40 compiling in debug mode take a very long time.
Take a look at Dex code time.
Compiling in release mode works fine.
Does anyone have an idea how to solve this, have I set something wrong?

B4A Version: 13.40
Parsing code. (1.09s)
Java Version: 19
Building folders structure. (6.51s)
Compiling code. (0.55s)
Compiling layouts code. (0.05s)
Organizing libraries. (0.29s)
(AndroidX SDK)
Compiling resources (3.17s)
Linking resources (5.49s)
build tools: 36.0.0, android jar: android-36
Compiling generated Java code. (10.18s)
Finding libraries that need to be dexed. (0.06s)
Dex: ABWifi (4.41s)
Dex: HTTP (1.98s)
Dex: MLwifi (1.70s)
Dex: FileSelect (2.05s)
Dex code (450.86s) <===========
Dex merge (7.48s)
Copying libraries resources (11.15s)
ZipAlign file. (0.52s)
Signing package file (private key). (1.45s)

Thank you,
 

DonManfred

Expert
Licensed User
Longtime User
Dex code (450.86s) <===========
Dexing does take some time on the first compile only after you upgraded to the new SDK. This is expected.
Further compiles should run much faster.
 
Upvote 0

markcasio

Member
Licensed User
Longtime User
Thank you for your reply ,
Yes, forgot to mention that this is persistent in debug mode, not just the first time.
B4A Version: 13.40
Parsing code. (0.72s)
Java Version: 19
Building folders structure. (0.06s)
Compiling code. (0.60s)
Compiling layouts code. (0.05s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Compiling resources (0.07s)
Linking resources (0.64s)
build tools: 36.0.0, android jar: android-36
Compiling generated Java code. (7.44s)
Finding libraries that need to be dexed. (0.03s)
Dex code (341.22s)
Dex merge (6.08s)
Copying libraries resources (11.52s)
ZipAlign file. (0.12s)
Signing package file (private key). (1.27s)
Installing file to device. (2.90s)
 
Upvote 0

markcasio

Member
Licensed User
Longtime User
Hi,
When setting non-legacy mode the compile time is back to normal.
After setting it to legacy it compiles very long, memory is at 39% during legacy compiling.
It seems like the compiler always thinks it's the first use after the update.
 

Attachments

  • memory_use.jpg
    memory_use.jpg
    216.8 KB · Views: 34
Upvote 0
Top