Android Question Error en FirebaseNotifications - Push messages

Discussion in 'Android Questions' started by FelixCusi, Jul 16, 2019.

  1. FelixCusi

    FelixCusi Member Licensed 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
     
  2. DonManfred

    DonManfred Expert Licensed User

    We can not help as you are not providing enough informations.

    Where is the project-upload which shows the issue?

    Seems like you are adding some routine multiple times; hard to say without seeing your project.
     
  3. FelixCusi

    FelixCusi Member Licensed User

    Hi Manfred
    Adjunto Project

    Thank
    Felix
     

    Attached Files:

  4. DonManfred

    DonManfred Expert Licensed User

    Use File-Export as ZIP to export a project. The layouts are missing.
     
  5. FelixCusi

    FelixCusi Member Licensed User

    Ok
     

    Attached Files:

  6. DonManfred

    DonManfred Expert Licensed User

    it compiles fine here
    I am using B4A 9.3 and an up to date AndroidX SDK.
     
  7. FelixCusi

    FelixCusi Member Licensed 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.

     
  8. FelixCusi

    FelixCusi Member Licensed User

  9. FelixCusi

    FelixCusi Member Licensed User

    Hi
    Now I have the error in b4a-bridge when I try to install I get the error "application not installed"
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    Try to uninstall the existing app and install again.
     
  11. FelixCusi

    FelixCusi Member Licensed 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
     

    Attached Files:

  12. Erel

    Erel Administrator Staff Member Licensed User

    Switch to USB debug mode instead of B4A-Bridge. It will provide more information about the installation problem. You can also post a link to the APK and we will try it here.
     
  13. FelixCusi

    FelixCusi Member Licensed 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
     
  14. Erel

    Erel Administrator Staff Member Licensed User

    Please upload the APK to Google Drive or a similar service and post a link.
     
  15. FelixCusi

    FelixCusi Member Licensed User

  16. Erel

    Erel Administrator Staff Member Licensed User

    Installs fine here.

    If you haven't yet released the app then I recommend you to switch to an all lower case package name.
     
  17. FelixCusi

    FelixCusi Member Licensed User

  18. Erel

    Erel Administrator Staff Member Licensed User

    I'm sorry but you will need to test it with a device connected in USB debug mode. You will get more information when it fails to install.
     
  19. FelixCusi

    FelixCusi Member Licensed User

  20. Erel

    Erel Administrator Staff Member Licensed User

    No reason to use a different push framework.

    Can you post the compilation window text when you try to run your app (with USB debug mode)?
    And check the unfiltered logs and post them as well.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice