[英]Unsatisfied linkerror aarch64 Samsung Galaxy S6
Hi I have been trying to test my code on my Samsung Galaxy S6, but it keeps crashing because of an Unsatisfied linkerror. 嗨,我一直在尝试在我的Samsung Galaxy S6上测试我的代码,但是由于不满意的linkerror,它一直崩溃。 Here is the error message:
这是错误消息:
AndroiddRuntime: FATAL EXCEPTION: main
Process: com.example.ericagredo.marvinproject, PID: 14982
java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/android-aarch64/libjnidispatch.so) not found in resource path (.)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:866)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:826)
at com.sun.jna.Native.<clinit>(Native.java:140)
at com.sun.jna.Native.loadLibrary(Native.java:481)
at com.emotiv.iedk.Edk.<clinit>(Edk.java:15)
at com.example.ericagredo.marvinproject.MainActivity.onCreate(MainActivity.java:52)
at android.app.Activity.performCreate(Activity.java:6374)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2767)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2879)
at android.app.ActivityThread.access$900(ActivityThread.java:182)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1475)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6141)
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:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
I am using jna.jar as a library and I believe that's where the problem is stemming from. 我正在使用jna.jar作为库,我相信这就是问题的根源。 When I go into the folders, there is no folder named android-aarch64 and I am not sure how to get it.
当我进入文件夹时,没有名为android-aarch64的文件夹,我不确定如何获取它。
Here are the folders in jna.jar: Screenshot 这是jna.jar中的文件夹: 屏幕截图
it mostly happens when you use native library and there isn't support in Android Gradle for native code yet for native libraries try this 大多数情况是在您使用本机库时发生的,而Android Gradle中不支持本机代码,但对于本机库,请尝试此操作
put your library into these folders and rebuild your project 将您的库放入这些文件夹并重建项目
Hope this will help 希望这会有所帮助
Not entirely sure you need a JAR file. 不确定是否需要JAR文件。
In the Emotiv Android examples , there is this Gradle dependency. 在Emotiv Android示例中 ,存在此Gradle依赖项。
compile 'com.emotiv.sdk:community:3.3.+@aar'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.