Android Question Dex Core timeout / error

Colly

New Member
I am just starting to learn B4A and have setup the system as per the instructions on the website.

I dont have access to a Windows machine, I am using an m4 mac which is running Windows 11 (arm version) and x86 programs run well on the virtual machine.

B4A is installed successfully and as advised I used 7-zip to extract required files.

When I try to run the program i get an error, "Dex : Core", Process timed out (set to 60 s).

I have no idea whatsoever on what to try and fix this, can anyone help ?.

Some screenshots




path config.png


compile.png
 

Colly

New Member
Thank you for the quick reply.

I only gave the virtual machine 6gb i've now increased it to 16gb (got 64gb on the mac).

I increased the timeout to 300s and it worked (took 105 secs), on a rerun it is 1.5s.


Thank you so much, it's currently slow, but at least it works.

I created a new app and compiled it , here are the timings for compilation on the first run, can you tell me if these are slow compared to a modern x86 machine ?
---------------------------------------------
Parsing code. (0.10s)
Java Version: 19
Building folders structure. (3.04s)
Running custom action. (0.17s)
Compiling code. (3.70s)
Compiling layouts code. (0.37s)
Organizing libraries. (0.04s)
(AndroidX SDK)
Compiling resources (0.38s)
Linking resources (0.78s)
build tools: 36.0.0, android jar: android-36
Compiling debugger engine code. (15.50s)
Compiling generated Java code. (16.42s)
Finding libraries that need to be dexed. (0.01s)
Dex: JavaObject (7.32s)
Dex code (92.35s)
Dex merge (9.53s)
Copying libraries resources (0.32s)
ZipAlign file. (0.14s)
Signing package file (debug key). (0.82s)
----------------------------------------------------

Will B4A run on Windows 7 ? (or even XP) instead of running a Virtualized Windows 11 (which then emulates x86 programs), i could emulate an Xp or Win7 system to try and speed things up if you think this is really slow.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
here are the timings for compilation on the first run, can you tell me if these are slow compared to a modern x86 machine ?
It is slow.

Testing with a new B4XTurtle project:
B4X:
Parsing code.    (0.01s)
    Java Version: 19
Building folders structure.    (0.01s)
Compiling code.    (0.04s)
Compiling layouts code.    (0.00s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Compiling resources    (0.05s)
Linking resources    (0.19s)
    build tools: 36.0.0, android jar: android-36
Compiling debugger engine code.    (1.42s)
Compiling generated Java code.    (1.42s)
Finding libraries that need to be dexed.    (0.00s)
Dex code    (1.80s)
Dex merge    (1.25s)
Copying libraries resources    (0.07s)
ZipAlign file.    (0.05s)
Signing package file (private key).    (0.38s)
 
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
Hello Colly,
I created a new app and compiled it , here are the timings for compilation on the first run, can you tell me if these are slow compared to a modern x86 machine ?
---------------------------------------------
Parsing code. (0.10s)
Java Version: 19
Building folders structure. (3.04s)
Running custom action. (0.17s)
Compiling code. (3.70s)
Compiling layouts code. (0.37s)
Organizing libraries. (0.04s)
(AndroidX SDK)
Compiling resources (0.38s)
Linking resources (0.78s)
build tools: 36.0.0, android jar: android-36
Compiling debugger engine code. (15.50s)
Compiling generated Java code. (16.42s)
Finding libraries that need to be dexed. (0.01s)
Dex: JavaObject (7.32s)
Dex code (92.35s)
Dex merge (9.53s)
Copying libraries resources (0.32s)
ZipAlign file. (0.14s)
Signing package file (debug key). (0.82s)
----------------------------------------------------

Will B4A run on Windows 7 ? (or even XP) instead of running a Virtualized Windows 11 (which then emulates x86 programs), i could emulate an Xp or Win7 system to try and speed things up if you think this is really slow.
Definitely slower than I would expect, even through a VM, especially as the M4 Mac was only released last year as is extremely fast. You say Windows 11 (arm version), so I presume that is Windows 11 ARM64. I'm going to say to watch the task manager/performance tab as you are assembling your B4A app, to see what is happening with the processor and memory loads, or the VM monitor.

Parallels Desktop or UTM???

Tested with B4Xturtle example
B4X:
B4A Version: 13.40
Parsing code.    (0.03s)
    Java Version: 19
Building folders structure.    (0.02s)
Compiling code.    (0.03s)
 
ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code.    (0.00s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Compiling resources    (0.05s)
Linking resources    (0.24s)
    build tools: 36.0.0, android jar: android-36
Compiling generated Java code.    (0.99s)
Finding libraries that need to be dexed.    (0.01s)
Dex code    (1.19s)
Dex merge    (1.04s)
Copying libraries resources    (0.05s)
ZipAlign file.    (0.03s)
Signing package file (private key).    (0.36s)
 
Upvote 0
Top