Android Question UNEXPECTED TOP-LEVEL EXCEPTION :Problem solved

Situ LLC

Active Member
Licensed User
Good afternoon. Someone who is having this problem, I can not find the problem and neither what causes it is the Rent at Car application of Mr. sfsameer that was release today, only in this DemosFAstdrive, the other application works well.
This is for all those who bought the Rent At Car app, they may get this error or maybe not.
Anyone thanks in advance, Thank you very much.



B4A Version: 10.50
Parsing code. (0.53s)
Java Version: 11
Building folders structure. (0.26s)
Compiling code. (1.67s)
Compiling layouts code. (0.04s)
Organizing libraries. (0.02s)
(AndroidX SDK)
Generating R file. (3.07s)
Compiling generated Java code. (6.90s)
Convert byte code - optimized dex. Error
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokhttp3/Address;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokhttp3/Authenticator;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokhttp3/Authenticator$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokhttp3/Cache;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokhttp3/Cache$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokhttp3/Cache$2;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokhttp3/Cache$CacheRequestImpl;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokhttp3/Cache$CacheRequestImpl$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokhttp3/Cache$CacheResponseBody;
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Translation has been interrupted
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:692)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:315)
at com.android.dx.command.dexer.Main.runDx(Main.java:293)
at com.android.dx.command.dexer.Main.main(Main.java:249)
at com.android.dx.command.Main.main(Main.java:94)
Caused by: java.lang.InterruptedException: Too many errors
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:684)
... 4 more
 
Last edited:

Situ LLC

Active Member
Licensed User
Problem solved.

Error in the Calculatedistance library, I removed it from the internal libraries and put the class and the lines 321 were corrected by

calculate.Initialize ("", "", m.Get ("StartingLocX"), m.Get ("StartingLocY"), m.Get ("LocX"), m.Get ("LocY"), "Km", "en", "driving", Me, "Check_Result")

Possibly the internal library was compiled with an older version of okhttp.
Link to download the class .bas

Enjoy it.
 
Upvote 0
Top