Android Question Need Help with 7.01 : UNEXPECTED TOP-LEVEL EXCEPTION:

rafaelmotaquintana

Active Member
Licensed User
This is what I did.
1- I installed the 7.01 version.
2- Copy all the libraries from the previous version, leaving the new intact (those from 7.01)

I get this error when compiling

B4A version: 7.01
Parsing code. (1.01s)
Compiling code. (1.04s)
Compiling layouts code. (0.08s)
Organizing libraries. (0.00s)
Generating R file. (0.06s)
Compiling debugger engine code. (4.35s)
Compiling generated Java code. (3.45s)
Convert byte code - optimized dex. Error
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/samples/httputils2/httpjob;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/samples/httputils2/httputils2service;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/samples/httputils2/httputils2service$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/samples/httputils2/httputils2service$2;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/samples/httputils2/httputils2service$httputils2service_BR;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokio/AsyncTimeout;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokio/AsyncTimeout$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokio/AsyncTimeout$2;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokio/AsyncTimeout$Watchdog;
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Translation has been interrupted
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:689)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:313)
at com.android.dx.command.dexer.Main.run(Main.java:279)
at com.android.dx.command.dexer.Main.main(Main.java:247)
at com.android.dx.command.Main.main(Main.java:106)
Caused by: java.lang.InterruptedException: Too many errors
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:681)
... 4 more



I really don't know what is is or what to do. This app is already in production and I'd like to make an upgrade for the reasons stated bu Erel regarding doevents etc.

Thanks in advance
 

JordiCP

Expert
Licensed User
Longtime User
Did you copy the libraries to the B4A library folder? It is a bad practice. Keep your additional libraries in a separate folder (and put it under Tools>Configure Paths>Additional libraries)
Also make sure that you have Java 8 (needed for B4A 7.x)

Don't know if they are related to your problem, but I would start with it
 
Upvote 0

rafaelmotaquintana

Active Member
Licensed User
That was it. I just recompile those custom versions and its working now.
Now I'll try disabling all those doevents, mostly used because the progress circle does not spin during process. I should have almost 50 of them
And dozens of msgbox2 functions. Maybe the msgbox2 case it could be handle internally by the compiler if using a directive or something.
 
Upvote 0

Yvon Steinthal

Active Member
Licensed User
Longtime User
Similar problem here...

B4X:
Convert byte code - optimized dex.  Error
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokio/AsyncTimeout;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokio/AsyncTimeout$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokio/AsyncTimeout$2;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokio/AsyncTimeout$Watchdog;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokio/Base64;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokio/Buffer;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokio/Buffer$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokio/Buffer$2;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokio/BufferedSink;
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Translation has been interrupted
   at com.android.dx.command.dexer.Main.processAllFiles(Main.java:689)
   at com.android.dx.command.dexer.Main.runMonoDex(Main.java:313)
   at com.android.dx.command.dexer.Main.run(Main.java:279)
   at com.android.dx.command.dexer.Main.main(Main.java:247)
   at com.android.dx.command.Main.main(Main.java:106)
Caused by: java.lang.InterruptedException: Too many errors
   at com.android.dx.command.dexer.Main.processAllFiles(Main.java:681)
 
Upvote 0

Yvon Steinthal

Active Member
Licensed User
Longtime User
I did not, it was earlier stated that i needed java 8 so i didnt see the necessity... but i will try it out.

A new error occurs:

"error: Source option 1.5 is no longer supported. Use 1.6 or later."

I can read from other posts that java 9 is NOT the solution to this... i really need help on this one, it used to work perfectly not so long ago and i did not change the code...
 
Last edited:
Upvote 0

Yvon Steinthal

Active Member
Licensed User
Longtime User
These are my libraries:
And i switched back to java 8.
 

Attachments

  • Capture.PNG
    Capture.PNG
    37.4 KB · Views: 326
Upvote 0

Yvon Steinthal

Active Member
Licensed User
Longtime User
Oh wow... nice catch MarcoRome...
Thank you so much !!!

Is there an alternative in order to update my app through my own server now that AppUpdate is no longer available?

Thank you again so much!
 
Upvote 0

udg

Expert
Licensed User
Longtime User
now that AppUpdate is no longer available
The library is still available and in its post#1 you may find its source. You just need to recompile it with your version of B4A.
I'm planning to release a final version of that library which could be compiled with any B4A release.
That final release will be followed by a B4A7+ "clean-up version" and any further development (by me) on the library will stop at that point.
A new project, probably called AppUpdating2, will start soon after that.
 
Upvote 0
Top