Android Question Uncaught translation error: already added: Lcom/google/android/gms/common/util/VisibleForTesting

Discussion in 'Android Questions' started by RichyK68, Apr 27, 2019.

  1. RichyK68

    RichyK68 Active Member Licensed User


    I'm trying to update my project to use Firebase Messaging. I'm using B4A 9.00 and Firebase Notifications 1.21, and targeting API 28. I've managed to overcome a 'no virtual method subscribetotopic' issue, and I'm now targeting API 28 not 27 after getting 'ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings' error on compile. I'm now getting this error now that I'm targeting API 28.

    Can anybody advise on what I'm doing wrong? I've looked for duplicate jars but cannot find any although that apparently is the cause. Some pointers would be really helpful.

    Thanks all,

  2. Erel

    Erel Administrator Staff Member Licensed User

    Create a new project with the same list of libraries. Do you get this error? Which libraries are referenced? Try to remove some until the error disappears.
  3. RichyK68

    RichyK68 Active Member Licensed User

    Analytics v2.01 is clashing with FirebaseNotifications v.121, if I remove one or the other it compiles but I need them both. What's the solution, if any?

  4. RichyK68

    RichyK68 Active Member Licensed User

    I've converted it to use FirebaseAnalytics rather than the Analyics library and that solved the issue. Thanks!
  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