Robolectric gives java.security.KeyStoreException: AndroidKeyStore not found

Viewed 3036

So I wrote my application where I am using KeyStore to encrypt/decrypt data. I also wrote a nice Robolectric test for it, but when I am trying to run the test I got the following exception:

java.security.KeyStoreException: AndroidKeyStore not found

for the following code:

keyStoreInstance = KeyStore.getInstance("AndroidKeyStore");

Any solution for this?

All I found was this: https://github.com/robolectric/robolectric/issues/1518

1 Answers
Related