Seems MasterKeys.getOrCreate is deprecated. It says to use MasterKey.Builder instead. Can you please update it? Also, I think the minimal API for androidx.security:security-crypto:1.1.0-alpha02, is now 21.