java.lang.UnsatisfiedLinkError: dlopen failed: library “libSDL2.so” not found

喜欢而已 提交于 2019-12-12 01:37:32

问题


When I am loading my application through android studio, I am getting following error:

I have compiled SDL2 library separately using Android.mk/Application.mk and added those so paths in my application.

buildToolsVersion = '23.0.2'

minSdkVersion.apiLevel = 17
targetSdkVersion.apiLevel = 23

Error

FATAL EXCEPTION: main Process: com.example.hellojni, PID: 14607 java.lang.UnsatisfiedLinkError: dlopen failed: library "libSDL2.so" not found at java.lang.Runtime.loadLibrary(Runtime.java:372) at java.lang.System.loadLibrary(System.java:1076) at com.example.hellojni.HelloJni.(HelloJni.java:66) at java.lang.Class.newInstance(Native Method) at android.app.Instrumentation.newActivity(Instrumentation.java:1095) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3083) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349) at android.app.ActivityThread.access$1100(ActivityThread.java:221) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7224) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

来源:https://stackoverflow.com/questions/39710497/java-lang-unsatisfiedlinkerror-dlopen-failed-library-libsdl2-so-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!