Android Question Error en FirebaseNotifications - Push messages

FelixCusi

Member
Licensed User
Longtime User
Hello:
I have the following error when compiling following the tutorial:
Watch Thread - B4A Library FirebaseNotifications - Push messages / Firebase Cloud Messaging (FCM)

"
Compilando el código Java generado. (5.13s)
Convirtiendo byte code a dex optimizado. Error
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/INotificationSideChannel;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/INotificationSideChannel$Stub;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/INotificationSideChannel$Stub$Proxy;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/os/IResultReceiver;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/os/IResultReceiver$Stub;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/os/IResultReceiver$Stub$Proxy;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/os/ResultReceiver;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/os/ResultReceiver$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/os/ResultReceiver$MyResultReceiver;
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
"

he error is generated by ticking the library FirebaseAdMob 1.55
Version V4A 8.8.
C:\Program Files\Java\jdk-11.0.1\bin\javac.exe
C:\Android\platforms\android-28\android.jar


I've already tried the forum's help and I still can not find the solution. Thank you very much for the help you can give me

Felix
 

DonManfred

Expert
Licensed User
Longtime User
We can not help as you are not providing enough informations.

Where is the project-upload which shows the issue?

Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/INotificationSideChannel;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/INotificationSideChannel$Stub;
Seems like you are adding some routine multiple times; hard to say without seeing your project.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
it compiles fine here
B4A Version: 9.30
Java Version: 8
Parse den Code. (0.00s)
Building folders structure. (0.02s)
Kompiliere den Code. (0.02s)
Kompiliere Layoutcode. (0.00s)
Organisiere Libraries. (0.00s)
(AndroidX SDK)
Generiere R Datei. (0.00s)
Kompiliere generierten Java Code. (0.04s)
Byte-Code konvertieren - optimiert dex. (4.37s)
Packe Dateien. (1.90s)
Kopieren von Bibliothek Ressourcen (0.12s)
Found 25 resource files.
Signiere Paketdatei (privater Key). (1.55s)
ZipAlign file. (0.17s)

I am using B4A 9.3 and an up to date AndroidX SDK.
 
Upvote 0

FelixCusi

Member
Licensed User
Longtime User
ok
The only thing left for me to try to make firebase work I have to update version of b4a. Because I already updated the sdk and still giving the same error.

B4A Versión: 8.80
Parseando código. (0.00s)
Building folders structure. (0.45s)
Compilando código. (4.33s)
Compilado códigos de diseños. (0.17s)
Organizando librerías. (3.23s)
Generando el fichero R. (0.83s)
Compilando el código del motor de depuración. (1.50s)
Compilando el código Java generado. (2.56s)
Convirtiendo byte code a dex optimizado. Error
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/INotificationSideChannel;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/INotificationSideChannel$Stub;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/INotificationSideChannel$Stub$Proxy;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/os/IResultReceiver;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/os/IResultReceiver$Stub;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/os/IResultReceiver$Stub$Proxy;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/os/ResultReceiver;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/os/ResultReceiver$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/os/ResultReceiver$MyResultReceiver;
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
 
Upvote 0

FelixCusi

Member
Licensed User
Longtime User
Hi. If I try to uninstall everything but still giving the same error. I also tried another cell phone and it doesn't install either. But it does not report any errors. I attach the project. Some other way to send messages because I've been two weeks and I still can't make it work. Thanks Felix
 

Attachments

  • nofuncionaaa.zip
    11.4 KB · Views: 260
  • google-services.zip
    607 bytes · Views: 277
Upvote 0

FelixCusi

Member
Licensed User
Longtime User
I can't upload it to the apk because the simple project I have weighs 2.5 mb. In Zip it weighs 2.4. enable debug mode but still don't throw me an error
 
Upvote 0
Top