react-native-keychain icon indicating copy to clipboard operation
react-native-keychain copied to clipboard

android application crashes with exception StrongBox security storage is not available. android.security.keystore.StrongBoxUnavailableException: Failed to generate key

Open ashu171093 opened this issue 2 years ago • 8 comments

When try to launch android application getting issue : StrongBox security storage is not available. android.security.keystore.StrongBoxUnavailableException: Failed to generate key. Working fine for ios

ashu171093 avatar May 25 '23 09:05 ashu171093

Also getting this issue on .73 Android, API 34. It is preventing our RN upgrade at this time.

tj-mc avatar Apr 02 '24 00:04 tj-mc

@ashu171093 I experienced this issue when upgrading from 0.69 to 0.73. In my case I saw lots of somfile.so not found errors. This pointed me to problems with Facebook "SoLoader". I followed this comment to bump my SoLoader version, and this error has gone away for me.

https://github.com/facebook/react-native/issues/34143#issuecomment-1199596695

tj-mc avatar Apr 02 '24 01:04 tj-mc

@tj-mc Thanks for response. I will check by implementing latest version on soloader.

ashu171093 avatar Apr 02 '24 09:04 ashu171093

Hi @ashu171093, may I know are you able to resolve this issue?

I'm experiencing the same issues on Android (iOS works fine) and the below doesn't resolve my issue.

@ashu171093 I experienced this issue when upgrading from 0.69 to 0.73. In my case I saw lots of somfile.so not found errors. This pointed me to problems with Facebook "SoLoader". I followed this comment to bump my SoLoader version, and this error has gone away for me.

facebook/react-native#34143 (comment)

lwin-kyaw avatar Apr 15 '24 05:04 lwin-kyaw

Has the above problem been fixed yet?

bonnmh avatar Jul 09 '24 11:07 bonnmh

Trying to update Android SDK to 34 without updating the react-native version, so I'm currently on rn: 0.67.5. Updating the version of SoLoader helped me, but in my case there was configurations.all { resolutionStrategy { force "com.facebook.soloader:soloader:0.9.0" } } part of code in app/build.gradle. I had to update it to 0.10.4.

@ashu171093 I experienced this issue when upgrading from 0.69 to 0.73. In my case I saw lots of somfile.so not found errors. This pointed me to problems with Facebook "SoLoader". I followed this comment to bump my SoLoader version, and this error has gone away for me.

facebook/react-native#34143 (comment)

MaratowKyryl avatar Jul 11 '24 18:07 MaratowKyryl

@lwin-kyaw In my case the issue is due to hermes enable . So for now I set enableHermes to false and rebuild project . Now android app launches without crash

ashu171093 avatar Jul 18 '24 05:07 ashu171093

Our project started getting this error with latest keychain version when enabling fabric

Waltari10 avatar Jul 22 '24 08:07 Waltari10