[英]java.lang.UnsatisfiedLinkError error in android
I am making an app for QR code scanner.我正在为二维码扫描仪制作一个应用程序。 Got a sample from google where everyone commented it works.
从谷歌那里得到了一个样本,每个人都评论它有效。 I am getting the following error
我收到以下错误
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/app.iihr-2/base.apk"],nativeLibraryDirectories=[/data/app/app.iihr-2/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libiconv.so"
I am getting the error in this line我在这一行收到错误
static {
System.loadLibrary("iconv");
}
the libiconv.so file is present in \\libs\\armeabi-v7a libiconv.so 文件存在于 \\libs\\armeabi-v7a
as well as in以及在
libs\\armeabi库\\armeabi
Can anyone help me?谁能帮我?
I fixed the error by adding more folders in jniLibs.我通过在 jniLibs 中添加更多文件夹来修复错误。
I added in the following fashion我以以下方式添加
Then I put my .so files in all of them.然后我把我的 .so 文件放在所有这些文件中。 Still error was coming, so I changed my target sdk from 23 to 22 and it worked.
仍然出现错误,所以我将目标 sdk 从 23 更改为 22 并且它起作用了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.