Mifare SDK Android studio 3.1

Forum / MIFARE SDK / Mifare SDK Android studio 3.1

  • 27. March 2018 at 22:02
    Hello,

    since i've updated my Android Studio to the new version 3.1 and gradle 4.4 the taplinx SDK doesn't work
    i've tried the 1.4 sample nxpnfclib and i've got the same error


    03-27 21:28:48.043 3895-3895/com.nxp.mifaresdksample E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.nxp.mifaresdksample, PID: 3895
    java.lang.VerifyError: com/nxp/nfclib/desfire/iF
    at com.nxp.nfclib.desfire.DESFireFactory.getDESFire(:86)
    at com.nxp.nfclib.ˏ.ॱ(:32)
    at com.nxp.nfclib.if.ˊ(:63)
    at com.nxp.nfclib.NxpNfcLib.getCardType(:351)
    at com.nxp.nfclib.NxpNfcLib.getCardType(:289)
    at com.nxp.sampletaplinx.MainActivity.cardLogic(MainActivity.java:464)
    at com.nxp.sampletaplinx.MainActivity.onNewIntent(MainActivity.java:457)
    at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1163)
    at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:2498)
    at android.app.ActivityThread.performNewIntents(ActivityThread.java:2511)
    at android.app.ActivityThread.handleNewIntent(ActivityThread.java:2520)
    at android.app.ActivityThread.access$1600(ActivityThread.java:151)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1413)
    at android.os.Handler.dispatchMessage(Handler.java:110)
    at android.os.Looper.loop(Looper.java:193)
    at android.app.ActivityThread.main(ActivityThread.java:5333)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
    at dalvik.system.NativeStart.main(Native Method)


    when i do


    CardType type = CardType.UnknownCard;
    try {
    type = libInstance.getCardType(intent);
    } catch (NxpNfcLibException ex) {
    Toast.makeText(this, ex.getMessage(), Toast.LENGTH_SHORT).show();
    }


    Best regards
    + 0  |  - 0

    Re: Mifare SDK Android studio 3.1

    27. March 2018 at 22:04
    i've tried the version 1.2, 1.3 and 1.4


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


    the 1.2 crash at
    libInstance.registerActivity(this, packageKey);

    and the 1.3 and 1.4 with the error above (on the main post)
    + 0  |  - 0

    Re: Mifare SDK Android studio 3.1

    28. March 2018 at 10:14
    Hi Florian,

    For clarity: it works before the update. The issue occurs after updating to AS 3.1 and Gradle 4.4. Good to know, I will inform the development team to verify this issue and make an update if required.

    Can you please let us know on which hardware and Android version do you test your software?

    Thanks,
    The TapLinx team

    + 0  |  - 0

    Re: Mifare SDK Android studio 3.1

    28. March 2018 at 10:22
    Hello,

    Yes that's it

    for the hardware i've tried only one device -> https://www.famoco.com/fx200 on Android 4.4,
    i can tried on a Nexus 5X (Android 8.x) tonight

    before the update it's was working perfectly
    + 0  |  - 0

    Re: Mifare SDK Android studio 3.1

    28. March 2018 at 13:36
    WordPress › Error

    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.