TapLinx Sample App compilation Error – setAppKeySettingsChangealbe(boolean)

Forum / MIFARE SDK / TapLinx Sample App compilation Error – setAppKeySettingsChangealbe(boolean)

Tagged: 

  • 21. November 2016 at 12:40
    Hi,

    I'm getting an error trying to compile TapLinx sample app, can you please help.


    Error:(1512, 70) error: cannot find symbol method setAppKeySettingsChangealbe(boolean)
    Error:(1587, 70) error: cannot find symbol method setAppKeySettingsChangealbe(boolean)


    Code:


    EV1ApplicationKeySettings.Builder appsetbuilder = new EV1ApplicationKeySettings.Builder();

    EV1ApplicationKeySettings appsettings = appsetbuilder.setAppKeySettingsChangealbe(true)
    .setAppMasterKeyChangeable(true)
    .setAuthenticationRequiredForApplicationManagment(false)
    .setAuthenticationRequiredForDirectoryConfigurationData(false)
    .setKeyTypeOfApplciationKeys(KeyType.TWO_KEY_THREEDES).build();

    desFireEV1.createApplication(appId, appsettings);
    desFireEV1.selectApplication(appId);



    Thanks,

    Emmanuel

    + 0  |  - 0

    Re: TapLinx Sample App compilation Error – setAppKeySettingsChangealbe(boolean)

    22. November 2016 at 14:55
    Hi Emmanuel,

    If you use 2K3DES keys, you have to choose always KeyType.THREEDES as key type.

    Kind regards,
    The TapLinx Team
    + 0  |  - 0

    Re: TapLinx Sample App compilation Error – setAppKeySettingsChangealbe(boolean)

    24. November 2016 at 13:39
    Hi TapLinx Team,

    It's fixed.it was a typo error.

    There's typos errors in the sample and in the documentation as well https://www.mifare.net/files/advanced_javadoc/com/nxp/nfclib/desfire/EV1ApplicationKeySettings.Builder.html

    I changed this


    EV1ApplicationKeySettings appsettings = appsetbuilder.setAppKeySettingsChangealbe(true)
    .setAppMasterKeyChangeable(true)
    .setAuthenticationRequiredForApplicationManagment(false)
    .setAuthenticationRequiredForDirectoryConfigurationData(false)
    .setKeyTypeOfApplciationKeys(KeyType.TWO_KEY_THREEDES).build();


    To this


    EV1ApplicationKeySettings appsettings = appsetbuilder.setAppKeySettingsChangeable(true)
    .setAppMasterKeyChangeable(true)
    .setAuthenticationRequiredForApplicationManagement(false)
    .setAuthenticationRequiredForDirectoryConfigurationData(false)
    .setKeyTypeOfApplicationKeys(KeyType.TWO_KEY_THREEDES).build();


    That's the fix.

    Thanks,

    Emmanuel
    + 0  |  - 0

    Re: TapLinx Sample App compilation Error – setAppKeySettingsChangealbe(boolean)

    25. November 2016 at 11:20
    Hi Emmanuel,

    Thanks, the typo error is already reported.

    The TapLinx Team

    + 0  |  - 0
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.