dlopen failed: library "libzxingcpp_android.so" not found #816
-
I followed the method in the zxing android wrapper README file and wrote the test code: import zxingcpp.BarcodeReader
var barcodeReader = BarcodeReader()
fun process(image: ImageProxy) {
image.use {
barcodeReader.read(it)
}.joinToString("\n") { result ->
"${result.format} (${result.contentType}): ${result.text}"
}
} There is no problem with compiling, but there will be a runtime error that causes the program to crash, prompting: dloopen failed: "libzxingcpp_android.so" not found: 2024-08-09 23:26:47.290 10448-10492 nativeloader com.example.myapplication D Load libzxingcpp_android.so using ns clns-7 from class loader (caller=/data/app/~~Z_baquRRXH73bg0Nq_8G_Q==/com.example.myapplication-j2g_6GIr2CHUXnxoA873ew==/base.apk!classes5.dex): dlopen failed: library "libzxingcpp_android.so" not found Please give me some guidance, I am a novice |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I suggest you start with the build locally option with the existing demo app. That should definitively work and then you have a base from which to go on. |
Beta Was this translation helpful? Give feedback.
I suggest you start with the build locally option with the existing demo app. That should definitively work and then you have a base from which to go on.