TapLinx is not compatible with Firebase Push

Forum / MIFARE SDK / TapLinx is not compatible with Firebase Push

  • 6. January 2017 at 20:20
    I'm trying to use the TapLinx library and Google's Firebase library in the same project for push messaging and crash reporting. But TapLinx seems to import some subset of Google libraries in such way that makes it incompatible with Firebase being imported in the project. Simply adding


    compile 'com.google.firebase:firebase-core:10.0.1'
    compile 'com.google.firebase:firebase-messaging:10.0.1'
    compile 'com.google.firebase:firebase-crash:10.0.1'


    And then trying to read a Mifare Plus card results in the following crash inside TapLinx:


    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/zzx;
    at com.google.android.gms.analytics.internal.zzf.zzZ(Unknown Source)
    at com.google.android.gms.analytics.GoogleAnalytics.getInstance(Unknown Source)
    at com.nxp.nfclib.analytics.AnalyticsTracker.ˎ(:35)
    at com.nxp.nfclib.analytics.AnalyticsTracker.sendEvent(:1118)
    at com.nxp.nfclib.plus.iF.read(:892)
    at com.nxp.nfclib.plus.iF.getUID(:1841)
    Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.zzx" on path


    This is stopping us from supporting FCM push. How can it be fixed?

    Thanks,
    Guilherme
    + 1  |  - 0

    Re: TapLinx is not compatible with Firebase Push

    10. January 2017 at 18:50
    I am having the same problem. Anyone?
    + 1  |  - 0

    Re: TapLinx is not compatible with Firebase Push

    11. January 2017 at 9:15
    Hi Guilherme,

    Yes, TapLinx uses the Google Analytics library. But this should not impair other libraries. Maybe you have to refine the library settings, e.g.: to insert “transitive=true” statement in the Gradle file.

    The TapLinx Team
    + 0  |  - 0

    Re: TapLinx is not compatible with Firebase Push

    11. January 2017 at 14:45
    We are using

    compile('taplinx-android:nxpnfcandroidlib:1.1@aar') { transitive = true }

    It still fails when firebase is added because of conflict.
    + 0  |  - 0

    Re: TapLinx is not compatible with Firebase Push

    16. January 2017 at 9:49
    Hi Guilherme,

    I have forwarded your request to the development team. They will check if any dependency exists.

    The TapLinx Team
    + 0  |  - 0

    Re: TapLinx is not compatible with Firebase Push

    16. January 2017 at 13:07
    Could you provide some ETA? I'm waiting on this, it has been 10 days already.
    + 0  |  - 0

    Re: TapLinx is not compatible with Firebase Push

    18. January 2017 at 13:34
    Hi Guilherme,

    I got a test result from the development team regarding your reported issue.

    This is what the team replies:

    We tried to reproduce the issue by including all the below dependencies which customer has mentioned.
    1) compile 'com.google.firebase:firebase-core:10.0.1’
    2) compile 'com.google.firebase:firebase-messaging:10.0.1'
    3) compile 'com.google.firebase:firebase-crash:10.0.1'
    However we could not able to found any issues with TapLinx Android Library version 1.0 and even latest version 1.1, we insist the customer to try including the latest TapLinx Android library and try again.

    Regards,
    The TapLinx Team

    + 0  |  - 0

    Re: TapLinx is not compatible with Firebase Push

    5. October 2018 at 12:41
    Hi

    I am having the same problem. Trying to use firebase, but taplinx google analytics is conflicting with firebase.

    Did this issue get resolved?

    Need Help!

    Thanks and Regards
    Samir Kumar
    + 0  |  - 0

    Re: TapLinx is not compatible with Firebase Push

    17. October 2018 at 10:02
    Hi all,

    The library version belongs to the latest release of TaplIinx! The current release is 1.5. If you need to use an older version the library versions are different.

    TapLinx is built against these versions in version 1.5:

    dependencies { 
    implementation 'com.google.android.gms:play-services-analytics:16.0.3' //For Using Google Analytics
    implementation files('libs//http-core-4.1.jar')
    implementation files('libs//apache-httpcomponents-httpclient.jar')
    }


    In your app you need to use these versions:

    dependencies { 
    implementation "com.android.support:appcompat-v7:$supportLibVersion"
    implementation "com.android.support:design:$supportLibVersion"
    implementation 'com.google.android.gms:play-services-analytics:16.0.3' //For Using Google Analytics
    implementation 'com.google.firebase:firebase-core:16.0.3'
    implementation 'com.google.firebase:firebase-messaging:17.3.2'
    }


    The TapLinx team
    + 0  |  - 0
Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.