android / security-samples

Multiple samples showing the best practices in security APIs on Android.
Apache License 2.0
938 stars 395 forks source link

androidx.biometric.BiometricPrompt.authenticate no longer works on android versions < 30 #75

Closed sublime392 closed 3 years ago

sublime392 commented 3 years ago

The sample project is using androidx.biometric:biometric:1.0.1, which does still work on older versions of Android. However the current stable version 1.1.0, or the 1.2.0-alpha2 versions do not work. Calling authenticate(promptInfo, BiometricPrompt.CryptoObject(cipher)); on any device < version 30 results in Error: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/security/identity/IdentityCredential

sublime392 commented 3 years ago

nvm, I don't know what I had wrong, but I have it working now.