Android Keystore Error “could not generate key in keystore”

前端 未结 4 1484
情话喂你
情话喂你 2021-02-01 01:59

I get an error trying to generate a key for certain devices. I\'m able to reproduce the error on a Samsung Galaxy Note running 4.4.2.

java.lang.IllegalStateExcep         


        
4条回答
  •  囚心锁ツ
    2021-02-01 02:24

    If your code is OK then remember that you need to set up a PIN/PW/Fingerprint (Secure unlock) for your device so that the keystore starts functioning. A simple swipe will give such error if you try to generate keypairs.

提交回复
热议问题