A user run my application in Android N, he got the crash.I know Google deprecated Crypto provider in Android N,but what would be the best way to migrating old encrypted data
You can use this code for provider :
SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1").getProvider();