Android Question Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/DataEncoder;

When I compile in debug mode I get the following error:

Conversione byte code - dex. Error
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/DataEncoder;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/Encoder;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/EncodingException;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/ObjectEncoder;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/ObjectEncoderContext;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/ValueEncoder;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/ValueEncoderContext;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/annotations/Encodable;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/annotations/Encodable$Field;
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.runMultiDex(Main.java:366)
at com.android.dx.command.dexer.Main.runDx(Main.java:291)
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

I have read some posts that dealt with the problem but I could not solve it.

Can you help me?

Thanks.
 
Which libraries are you using? Which version of B4A? Have you downloaded the updated Android SDK: https://www.b4x.com/b4a.html
This is list of libraries I'm using:
ahdashboard
camera
core
customlistview
dateutils
designsupport
dialogs
encryption
firebaseadmob
firebasenotifications
fusedlocationprovider
ahnavigationdrawer
geocoder
gps
ime
javaobject
json
net
network
okhttputils2
phone
randomaccessfile
ahswipetorefresh
reflection
runtimepermissions
serial
signcap
sql
stringfunctions
stringutils
tastytoast
toastmessageshow
xmllayoutbuilder
ahviewpager
zbarbarcodescanner
androidvisionocr
appcompat
audio
base64image
byteconverter

I use 10.50 B4A version.

I have downloaded the updated Android SDK.
I followed the instructions from this link: https://www.b4x.com/b4a.html.

Thanks.
 
Upvote 0
Top