Android Question FirebaseML problem

Hamied Abou Hulaikah

Well-Known Member
Licensed User
Longtime User
hello all
after i updated my sdk for FirebaseML required component
and add the lib. FirebaseMLV0.8
i tried to run the FirebaseMLVisionEx example
but it shows the following error
B4A Version: 9.80
Java Version: 8
Parsing code. (0.00s)
Building folders structure. (0.01s)
Compiling code. (0.05s)

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. (0.00s)
Compiling generated Java code. (1.98s)
Convert byte code - optimized dex. Error
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/inject/Provider;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/AbstractComponentContainer;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/Component;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/Component$$Lambda$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/Component$$Lambda$2;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/Component$$Lambda$3;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/Component$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/Component$Builder;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/ComponentContainer;
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
.,,,,,,,,,,,,,,,,,,,,,,,,,
and i had another error in another app that was working before updating the sdk
B4A Version: 9.80
Java Version: 8
Parsing code. (0.22s)
Building folders structure. (0.05s)
Compiling code. (0.68s)

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. (0.03s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. Error
d:\okk\android deveploment\android-sdk\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.1.0\unpacked-appcompat-1.1.0\res\values\values.xml:1929: error: Attribute "fontVariationSettings" has already been defined
any help?
and thank you in advance
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
Uncaught translation error: java.lang.IllegalArgumentException: already added:

you need to find which library is adding dependecies again.

"fontVariationSettings" has already been defined
Redownload Appcompat 4.0 zip
 
Upvote 0

Hamied Abou Hulaikah

Well-Known Member
Licensed User
Longtime User
Today I got these errors:
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/inject/Provider;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/AbstractComponentContainer;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/Component;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/Component$$Lambda$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/Component$$Lambda$2;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/Component$$Lambda$3;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/Component$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/Component$Builder;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/ComponentContainer;
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Start with a new project. Only implement ML. Does it work?

Add dependencies until you got the error.

You must find the multiple dependency.

Also note that you should not use an UPDATED SDK. At least the firebase-artifacts should not be updated as Google is changing a lot.
 
Upvote 0

Hamied Abou Hulaikah

Well-Known Member
Licensed User
Longtime User
Dear @DonManfred project works only if I removed all firebase libraries!! I added them one by one, the problem exist!!
I think error belongs is to firebase cores or whatever, Mr @Erel should fix this error, it is serious problem. Most of us need sdk updates, also who update sdk accedintly like me, He can't go back!

The link to the sdk is here: https://www.b4x.com/b4a.html
I try, no luck!
 
Upvote 0
Top