Litho: Didn't find class "com.facebook.jni.HybridData$Destructor" on path: DexPathList

Created on 5 Feb 2020  路  2Comments  路  Source: facebook/litho

Version

    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'

Issues and Steps to Reproduce

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.

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'

All 2 comments

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Junaid-Sakib picture Junaid-Sakib  路  7Comments

Drewbi picture Drewbi  路  3Comments

TimurKhairnasov picture TimurKhairnasov  路  6Comments

hussainahmad picture hussainahmad  路  3Comments

passy picture passy  路  3Comments