Forum / MIFARE SDK / TapLinx Sample App compilation Error – setAppKeySettingsChangealbe(boolean)
Tagged: taplinx
-
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
Hi Emmanuel,
If you use 2K3DES keys, you have to choose always KeyType.THREEDES as key type.
Kind regards,
The TapLinx Team
+ 0 | - 0
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
Hi Emmanuel,
Thanks, the typo error is already reported.
The TapLinx Team
+ 0 | - 0
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.