Android Question [SOLVED] Crash at compile time

IndieDev

Active Member
Licensed User
Hi,

This one app was compiling fine till a couple of days back.

Now, all of a sudden, it crashes during compile (both Debug/Release modes).

Compile Error:
B4A Version: 10.70
Parsing code.    (0.23s)
    Java Version: 11
Building folders structure.    (0.27s)
Compiling code.    (0.46s)
Compiling layouts code.    (0.03s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Compiling resources    (0.93s)
Linking resources    (1.12s)
Compiling debugger engine code.    (6.42s)
Compiling generated Java code.    (5.40s)
Convert byte code - optimized dex.    Error
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroidx/annotation/AnimRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroidx/annotation/AnimatorRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroidx/annotation/AnyRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroidx/annotation/ArrayRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroidx/annotation/AttrRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroidx/annotation/BinderThread;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroidx/annotation/BoolRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroidx/annotation/CallSuper;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroidx/annotation/CheckResult;
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

These are the Libraries used.


Crashes in both 10.6 and 10.7 versions of B4A.
No changes in code.

What am I doing wrong?

Regards.
 

IndieDev

Active Member
Licensed User
Hi,

Have updated Net library to 1.81

Updated all recommended files, using SDK Manager.

Still the error persists.

It's only this app.
 
Upvote 0

IndieDev

Active Member
Licensed User
Is there something wrong with what I had asked by posting this question?

The post seems to not have been approved for others to view and help....?
 
Upvote 0

IndieDev

Active Member
Licensed User
Removed the library "NewQRCodeReaderView" and the program compiled fine!!

Why is this?

The program had compiled fine, a couple of days back, with this library.
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
Upvote 0

IndieDev

Active Member
Licensed User
Commented this line in "NewQRCodeReaderView.xml".

B4X:
<!-- <dependsOn>android-support-annotations</dependsOn> -->

Now, the app compiled fine and the library seems to be working.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…