Android Question First issue with B4A 14.20 beta R8

asales

Expert
Licensed User
Longtime User
I compiled a small internal app without problems, but I'm testing with another small app that I published on the Play Store and I'm getting the errors in the attached text file.

The error message was only solved by adding these lines:
B4X:
    #AdditionalJar: androidx.work:work-runtime
    #AdditionalJar: androidx.work:work-runtime-ktx
    #AdditionalJar: androidx.startup:startup-runtime
    #AdditionalJar: androidx.room:room-runtime
    #AdditionalJar: androidx.room:room-common   
    #AdditionalJar: androidx.concurrent:concurrent-futures-ktx
    #AdditionalJar: androidx.lifecycle:lifecycle-service
But I can not compile yet due the timeout. Change from 60 to 200 and still get the timeout error:
Dexing and optimizing with R8 Error
Process timed out.
 

Attachments

  • error_R8.txt
    15.5 KB · Views: 48

asales

Expert
Licensed User
Longtime User
Changing the process timeout to 300 worked, along with the #AdditionalJar lines.

I get an error in another app, related to AdsHelper, that I'll check and create another thread.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
You have two options:
1. Add the missing references as you did.
2. Ignore them by adding:
B4X:
AddProguardText(
-dontwarn androidx.work.**
-dontwarn androidx.startup.**
-dontwarn androidx.room.**
-dontwarn androidx.concurrent.futures.**
-dontwarn androidx.lifecycle.**
)

The first option is safer. I'm not sure which libraries you used, but these are real missing references and can cause runtime issues if missing.

About the time out:
Make sure that MaxRamForDex is at least 4192
Close B4A. Edit the ini file: C:\Users\<user name>\AppData\Roaming\Anywhere Software\Basic4android
b4xV5.ini
 
Upvote 0

asales

Expert
Licensed User
Longtime User
About the time out:
Make sure that MaxRamForDex is at least 4192
Close B4A. Edit the ini file: C:\Users\<user name>\AppData\Roaming\Anywhere Software\Basic4android
b4xV5.ini
Thanks.
It was 4096. I changed to 6000.

Libs:
1790782289487.png
 
Last edited:
Upvote 0
Top