Android Question Issue on later B4 version 9.0

Liew

Member
Licensed User
Hi, can anyone tell me why I encountered this problem when I migrate from version 8.3 to the latest.

My program cannot be compiled and the errors is as below:
B4A Version: 9.01.2
Java Version: 11
Parsing code. (0.25s)
Building folders structure. (0.05s)
Compiling code. (1.07s)
Compiling layouts code. (0.04s)
Organizing libraries. (0.00s)
Generating R file. (0.22s)
Compiling debugger engine code. (8.62s)
Compiling generated Java code. (4.08s)
Convert byte code - optimized dex. Error
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimatorRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added:
 

DonManfred

Expert
Licensed User
Longtime User
Better upload a small project which shows the issue.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Hi, can anyone tell me why I encountered this problem when I migrate from version 8.3 to the latest.

My program cannot be compiled and the errors is as below:
B4A Version: 9.01.2
Java Version: 11
Parsing code. (0.25s)
Building folders structure. (0.05s)
Compiling code. (1.07s)
Compiling layouts code. (0.04s)
Organizing libraries. (0.00s)
Generating R file. (0.22s)
Compiling debugger engine code. (8.62s)
Compiling generated Java code. (4.08s)
Convert byte code - optimized dex. Error
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimatorRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added:
First of all, PLEASE use code tags for the error text, it makes it much easier to read.

From your error log, there seems to be a duplicate issue related to animation. Maybe you ate using libs that conflict with each other because they declare the same object using the same name.
As sugessugg, upload a small project that will allow us to help you further.
Another suggestion is, based on the error, to comment out animation related code, including declaration of lib objects, and see it compiles
 
Upvote 0
Top