Android Question Error when use the library "NewQRCodeReaderView"

welu1805

Active Member
Licensed User
Longtime User
Hi all,

I want to use in a large projekt

QRCodeReaderView - new release

https://www.b4x.com/android/forum/threads/82265

The origin example works fine. But if I add the library "NewQRCodeReaderView" to my project I get these errors:

B4A Version: 8.50
Parsing code. (0.79s)
Building folders structure. (0.41s)
Compiling code. (0.84s)

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. (0.03s)
Organizing libraries. (1.08s)
Generating R file. (0.47s)
Compiling generated Java code. (4.50s)
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: Landroid/support/annotation/AnyRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/ArrayRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AttrRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/BinderThread;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/BoolRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/CallSuper;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/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

Has anyone an idea?

Greetings
Lutz
 

DonManfred

Expert
Licensed User
Longtime User
Open NewQRCodeReaderView.xml and temove the line
B4X:
<dependsOn>android-support-annotations</dependsOn>
 
Upvote 0
Top