How to Use Unsupported Exception for Lower Platform Version

后端 未结 3 1206
渐次进展
渐次进展 2020-12-16 00:42

I have a DialogFragment that handles login and fingerprint authentication for my application. This fragment uses two classes that are exclusive to API 23,

3条回答
  •  旧时难觅i
    2020-12-16 01:09

    I had the same error and solved it the following way:

    catch (Exception e) {
        if (e instanceof KeyPermanentlyInvalidatedException) {
            //your error handling goes here
        }
    

    It isn't vey nice, but it works

提交回复
热议问题