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
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 inError: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/security/identity/IdentityCredential