gpt4 book ai didi

android - 在模拟器中打开应用程序时出现 UnsatisfiedLinkError

转载 作者:行者123 更新时间:2023-11-29 01:33:17 35 4
gpt4 key购买 nike

每当我在模拟器中打开我的应用程序时,我都会收到此错误:

05-06 18:52:13.640 2861-2861/? E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: scan.test, PID: 2861 java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/scan.test-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "libtiny-tools.so" at java.lang.Runtime.loadLibrary(Runtime.java:366) at java.lang.System.loadLibrary(System.java:988) at android.hardware.barcode.Scanner.(Scanner.java:136) at scan.test.scan_v1activity.onStart(scan_v1activity.java:97) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1236) at android.app.Activity.performStart(Activity.java:6006) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2288) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5257) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

最佳答案

我不确定这是否是确切的解决方案,但我遇到了同样的问题,这已解决我的问题您在 libs 的 armeabi 文件夹中缺少 libtiny-tools.so 文件。

如果你使用的是android studio

enter image description here

如上图所示添加。

关于android - 在模拟器中打开应用程序时出现 UnsatisfiedLinkError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30074696/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com