Reputation: 1
I am using Nox player as an emulator and the working environment is Android Studio. The current project's min-SDK version is 23 and compileSDKversion is 29.
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/security/keystore/KeyGenParameterSpec$Builder;
This error happened in this part of the code.
try {
masterKeyAlias = MasterKeys.getOrCreate(MasterKeys.AES256_GCM_SPEC);
} catch (GeneralSecurityException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
I also have added these dependencies.
implementation 'androidx.security:security-crypto:1.0.0-rc04'
implementation "androidx.security:security-identity-credential:1.0.0-alpha02"
I've tried to change android:allowbackup="false"
, also tried to change min-SDK version to 24 or above, but the same issue happened always.
If anyone has an idea, please help me. Thanks. (P.S. If you have any recommendations to keep simple values in the android app)
Upvotes: 0
Views: 1355