Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E/AndroidRuntime: FATAL EXCEPTION: create_react_context java.lang.NoClassDefFoundError: Failed resolution of: Lcom/facebook/android/crypto/keychain/SharedPrefsBackedKeyChain; #599

Open
roneyyb opened this issue Jun 1, 2023 · 1 comment

Comments

@roneyyb
Copy link

roneyyb commented Jun 1, 2023

Getting this error in runtime after installing react-native-keychain.

react-native: 0.69.9
gradle: 7.5.5
react-native-keychain: 8.1.1

Android Studio logs

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/facebook/android/crypto/keychain/SharedPrefsBackedKeyChain;
at com.oblador.keychain.cipherStorage.CipherStorageFacebookConceal.(CipherStorageFacebookConceal.java:37)
at com.oblador.keychain.KeychainModule.(KeychainModule.java:143)
at com.oblador.keychain.KeychainModule.withWarming(KeychainModule.java:154)
at com.oblador.keychain.KeychainModuleBuilder.build(KeychainModuleBuilder.java:29)
at com.oblador.keychain.KeychainPackage.createNativeModules(KeychainPackage.java:30)
at com.facebook.react.ReactPackageHelper.getNativeModuleIterator(ReactPackageHelper.java:42)
at com.facebook.react.NativeModuleRegistryBuilder.processPackage(NativeModuleRegistryBuilder.java:42)
at com.facebook.react.ReactInstanceManager.processPackage(ReactInstanceManager.java:1458)
at com.facebook.react.ReactInstanceManager.processPackages(ReactInstanceManager.java:1429)
at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1340)
at com.facebook.react.ReactInstanceManager.access$1200(ReactInstanceManager.java:136)
at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1108)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.facebook.android.crypto.keychain.SharedPrefsBackedKeyChain" on path: DexPathList[[zip file "/data/app/~~jODA6vghuh0qnveApGNhOQ==/com.appname-kpyauaTbvqQg63xNSR9-GQ==/base.apk"],nativeLibraryDirectories=[/data/app/~~jODA6vghuh0qnveApGNhOQ==/com.appname-kpyauaTbvqQg63xNSR9-GQ==/lib/arm64, /data/app/~~jODA6vghuh0qnveApGNhOQ==/com.appname-kpyauaTbvqQg63xNSR9-GQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.oblador.keychain.cipherStorage.CipherStorageFacebookConceal.(CipherStorageFacebookConceal.java:37) 
at com.oblador.keychain.KeychainModule.(KeychainModule.java:143) 
at com.oblador.keychain.KeychainModule.withWarming(KeychainModule.java:154) 
at com.oblador.keychain.KeychainModuleBuilder.build(KeychainModuleBuilder.java:29) 
at com.oblador.keychain.KeychainPackage.createNativeModules(KeychainPackage.java:30) 
at com.facebook.react.ReactPackageHelper.getNativeModuleIterator(ReactPackageHelper.java:42) 
at com.facebook.react.NativeModuleRegistryBuilder.processPackage(NativeModuleRegistryBuilder.java:42) 
at com.facebook.react.ReactInstanceManager.processPackage(ReactInstanceManager.java:1458) 
at com.facebook.react.ReactInstanceManager.processPackages(ReactInstanceManager.java:1429) 
at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1340) 
at com.facebook.react.ReactInstanceManager.access$1200(ReactInstanceManager.java:136) 
at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1108) 
at java.lang.Thread.run(Thread.java:1012) 

@Sonu-dhall
Copy link

did you find any solution? can you share it here, I am also facing same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants