Forum Replies Created

  • Re: Reply To: Mifare SDK Android studio 3.1

    5. June 2018 at 19:06
    in reply to: Mifare SDK Android studio 3.1
    Hello,

    Anyone here has successfully run taplinx 1.4 with gradle 4.4+ ?

    Always the same error... and only in gradle4.4+ fully working on gradle 4.1....

    06-05 19:02:40.258 20885-20885/com.kakandetransfer.agent E/LoginActivity: cardLogic:
    java.lang.VerifyError: com/nxp/nfclib/desfire/ˊ
    at com.nxp.nfclib.desfire.DESFireFactory.getDESFire(:86)
    at com.nxp.nfclib.ˎ.ॱ(:32)
    at com.nxp.nfclib.ˊ.ॱ(:63)
    at com.nxp.nfclib.NxpNfcLib.getCardType(:352)
    at com.nxp.nfclib.NxpNfcLib.getCardType(:290)


    + 0  |  - 0

    Re: Reply To: Mifare SDK Android studio 3.1

    29. March 2018 at 20:53
    in reply to: Mifare SDK Android studio 3.1
    Hello,

    After a lot of test, there is a real issue with your library and gradle 4.4 +
    classpath 'com.android.tools.build:gradle:3.0.1'


    with in the build.gradle on the root folder

    dependencies {
    classpath 'com.android.tools.build:gradle:3.0.1'


    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
    }


    and in the gradle-wrapper.properties

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip


    The library is fully working on 4.4 device

    but with in the build.gradle on the root folder

    dependencies {
    classpath 'com.android.tools.build:gradle:3.1.0'


    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
    }


    and in the gradle-wrapper.properties

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip


    i have an exception
    + 0  |  - 0

    Re: Reply To: Mifare SDK Android studio 3.1

    29. March 2018 at 10:49
    in reply to: Mifare SDK Android studio 3.1
    So since I've update my gradle to 4.4 I can't use TapLinx Library with my Android 4.4 ?
    I've tried your sample on my 4.4 and I got the same error

    Do you will try to fix this error for the 4.4 device or you will just end the support for 4.4 version ?
    + 0  |  - 0

    Re: Reply To: Mifare SDK Android studio 3.1

    28. March 2018 at 22:10
    in reply to: Mifare SDK Android studio 3.1
    Hello,

    it's work perfectly on my Nexus 5X with Android 8.x but crash on my https://www.famoco.com/fx200 on Android 4.4
    + 0  |  - 0

    Re: Reply To: Mifare SDK Android studio 3.1

    28. March 2018 at 21:52
    in reply to: Mifare SDK Android studio 3.1
    Hello,

    do you have update your gradle to 4.4 ?
    this is my gradle file


    repositories {
    flatDir {
    dirs 'libs'
    }
    /** Following lines are for accessing the TapLinx jars from Repo directly */
    maven {
    credentials {
    username "sdkuser"
    password "taplinx"
    }
    url "http://maven.taplinx.nxp.com/nexus/content/repositories/taplinx/"
    }
    }

    dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'taplinx-android:nxpnfcandroidlib:1.4'
    implementation 'com.android.support:support-v4:27.1.0'
    implementation 'com.android.support:appcompat-v7:27.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.android.support:recyclerview-v7:27.1.0'
    implementation 'com.android.support:cardview-v7:27.1.0'
    implementation 'com.android.support:design:27.1.0'
    implementation 'android.arch.lifecycle:extensions:1.1.1'
    implementation 'android.arch.lifecycle:runtime:1.1.1'
    implementation 'android.arch.persistence.room:runtime:1.0.0'
    implementation 'com.squareup.retrofit2:retrofit:2.3.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
    implementation 'com.airbnb.android:lottie:2.5.0'
    implementation 'com.github.douglasjunior.AndroidBluetoothLibrary:BluetoothClassicLibrary:0.3.5'
    implementation 'com.github.bumptech.glide:glide:4.6.1'
    implementation 'com.android.support:multidex:1.0.3'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
    annotationProcessor "android.arch.lifecycle:compiler:1.1.1"
    annotationProcessor "android.arch.persistence.room:compiler:1.0.0"
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
    }


    with


    compileSdkVersion 27
    compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
    }





    private void initLibrary() {
    instance = NxpNfcLib.getInstance();
    instance.registerActivity(this, BuildConfig.TAPLINX_KEY);
    }

    private void cardLogic(Intent intent) {
    try {
    CardType card = instance.getCardType(intent); // CRASH HERE
    Log.d(TAG, "cardLogic: "+card.getTagName());
    if (card.equals(CardType.DESFireEV1)) {
    ev1 = DESFireFactory.getInstance().getDESFire(instance.getCustomModules());
    ev1.getReader().connect();
    ev1.getReader().setTimeout(TIMEOUT);
    desfireEV1CardLogic();
    }
    } catch (Throwable t) {
    Log.e(TAG, "cardLogic: ", t);
    showError(NfcApplicationIDHelper.getError(this, t.getMessage()));
    }
    }



    there is the stack


    java.lang.VerifyError: com/nxp/nfclib/desfire/ˊ
    at com.nxp.nfclib.desfire.DESFireFactory.getDESFire(:86)
    at com.nxp.nfclib.ˎ.ॱ(:32)
    at com.nxp.nfclib.ˊ.ॱ(:63)
    at com.nxp.nfclib.NxpNfcLib.getCardType(:352)
    at com.nxp.nfclib.NxpNfcLib.getCardType(:290)
    at com.ecash.nfc.activities.LoginActivity.cardLogic(LoginActivity.java:149)
    at com.ecash.nfc.activities.LoginActivity.onNewIntent(LoginActivity.java:144)
    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)


    and this happened when i updated my AS to Android Studio 3.1 (March 26, 2018) build with
    distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip



    + 0  |  - 0

    Re: Reply To: Mifare SDK Android studio 3.1

    28. March 2018 at 10:22
    in reply to: Mifare SDK Android studio 3.1
    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: Reply To: Mifare SDK Android studio 3.1

    27. March 2018 at 22:04
    in reply to: Mifare SDK Android studio 3.1
    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
Viewing 7 posts - 1 through 7 (of 7 total)