implementation 'com.facebook.litho:litho-core:0.33.0'
implementation 'com.facebook.litho:litho-widget:0.33.0'
kapt 'com.facebook.litho:litho-processor:0.33.0'
implementation 'com.facebook.soloader:soloader:0.5.1'
testImplementation 'com.facebook.litho:litho-testing:0.33.0'
Create any component and you get a crash with the following message:
error java.lang.ClassNotFoundException: Didn't find class "com.facebook.jni.HybridData$Destructor" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/@app-id-EPkSS-VRN-_HMXFDmM3oAw==/base.apk"],nativeLibraryDirectories=[/data/app/@app-id-EPkSS-VRN-_HMXFDmM3oAw==/lib/arm64, /data/app/@app-id-EPkSS-VRN-_HMXFDmM3oAw==/base.apk!/lib/arm64-v8a, /system/lib64]]
2020-02-05 16:24:49.708 30267-30267@app-id A/@part-of-app-id: java_vm_ext.cc:542] JNI DETECTED ERROR IN APPLICATION: JNI NewGlobalRef called with pending exception java.lang.ClassNotFoundException: Didn't find class "com.facebook.jni.HybridData$Destructor" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/@app-id-EPkSS-VRN-_HMXFDmM3oAw==/base.apk"],nativeLibraryDirectories=[/data/app/@app-id-EPkSS-VRN-_HMXFDmM3oAw==/lib/arm64, /data/app/@app-id-EPkSS-VRN-_HMXFDmM3oAw==/base.apk!/lib/arm64-v8a, /system/lib64]]
I've tried looking everywhere, but I cannot locate the problem.
I do call SoLoader.init(this, false) in my application class.
I've run into the same issue, adding the fbjni dependency solved the problem for me:
implementation 'com.facebook.fbjni:fbjni:0.0.2'
Thanks! That solved the problem for me!
Most helpful comment
I've run into the same issue, adding the fbjni dependency solved the problem for me:
implementation 'com.facebook.fbjni:fbjni:0.0.2'