Android Question Not able to compile the project after update from 10.x to 12.x

Jiten Shah

Member
Licensed User
B4X:
B4A Version: 12.20
Parsing code.    (0.05s)
    Java Version: 14
Building folders structure.    (0.11s)
Compiling code.    (0.05s)
Compiling layouts code.    (0.00s)
Organizing libraries.    (0.03s)
    (AndroidX SDK)
Compiling resources    (0.11s)
Linking resources    (0.58s)
Compiling generated Java code.    (0.08s)
Finding libraries that need to be dexed.    (0.02s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\core\core\1.9.0\unpacked-core-1.9.0\jars\classes    Error
Process timed out.
You can change it under Tools - IDE Options.

Manifest:
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="31"/>
<supports-screens android:largeScreens="true" 
    android:normalScreens="true" 
    android:smallScreens="true" 
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.DarkTheme)

This project was working in 10.x

I have remove the 10.x version then installed the current 12.x version.

Timeout is 120 seconds.
 

DonManfred

Expert
Licensed User
Longtime User
Last edited:
Upvote 0

Jiten Shah

Member
Licensed User
You also need to install a nerw SDK for B4A 12.
I have installed latest SDK Only command-line and resources ("C:\android\platforms\android-33\android.jar")
 
Upvote 0

Jiten Shah

Member
Licensed User
After reinstalling SDK same issue :


B4X:
B4A Version: 12.20
Parsing code.    (0.06s)
    Java Version: 14
Building folders structure.    (0.25s)
Compiling code.    (0.06s)
Compiling layouts code.    (0.02s)
Organizing libraries.    (0.30s)
    (AndroidX SDK)
Compiling resources    (0.70s)
Linking resources    (0.60s)
Compiling generated Java code.    (58.55s)
Finding libraries that need to be dexed.    (0.05s)
Dex: B4AShared    (59.64s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\legacy\legacy-support-v4\1.0.0\unpacked-legacy-support-v4-1.0.0\jars\classes    (33.00s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\core\core\1.9.0\unpacked-core-1.9.0\jars\classes    Error
Process timed out.
You can change it under Tools - IDE Options
 
Upvote 0

Jiten Shah

Member
Licensed User
Upload a small project showing the problem.
I just created a default project (File -> New -> Default)


B4X:
B4A Version: 12.20
Parsing code.    (0.00s)
    Java Version: 14
Building folders structure.    (0.01s)
Compiling code.    (0.06s)
Compiling layouts code.    (0.00s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Compiling resources    (0.07s)
Linking resources    (0.39s)
Compiling generated Java code.    (23.18s)
Finding libraries that need to be dexed.    (0.00s)
Dex: Core    Error
Process timed out.
You can change it under Tools - IDE Options.
 
Upvote 0

Jiten Shah

Member
Licensed User
1. Try to increase the process timeout setting.
2. How much RAM does your computer have?
3. Have you tried to restart the PC?
I have switch to following jdk and it is working:


B4X:
openjdk 11.0.1 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
 
Upvote 0

Jiten Shah

Member
Licensed User
I am using VM to run windows under ubuntu this is the way I was using b4a version 10.x

12.x version IDE somehow slow during compile process whole system will be slow even mouse click also not responding.

And after closing the IDE for few seconds system will slow just like at the compile time.
 
Upvote 0
Top