java.lang.UnsatisfiedLinkError:dlopen failed:library" libSDL2.so"找不到

时间:2016-09-26 19:07:02

标签: android-ndk sdl-2 dlopen

当我通过android studio加载我的应用程序时,我收到以下错误:

我使用SDL2分别编译了Android.mk/Application.mk库,并在我的应用程序中添加了这些路径。

buildToolsVersion = '23.0.2'

minSdkVersion.apiLevel = 17
targetSdkVersion.apiLevel = 23

错误

  

致命的例外:主要                                                                         处理:com.example.hellojni,PID:14607                                                                         java.lang.UnsatisfiedLinkError:dlopen failed:library" libSDL2.so"未找到                                                                             在java.lang.Runtime.loadLibrary(Runtime.java:372)                                                                             在java.lang.System.loadLibrary(System.java:1076)                                                                             在com.example.hellojni.HelloJni。(HelloJni.java:66)                                                                             at java.lang.Class.newInstance(Native Method)                                                                             在android.app.Instrumentation.newActivity(Instrumentation.java:1095)                                                                             在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3083)                                                                             在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349)                                                                             在android.app.ActivityThread.access $ 1100(ActivityThread.java:221)                                                                             在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1794)                                                                             在android.os.Handler.dispatchMessage(Handler.java:102)                                                                             在android.os.Looper.loop(Looper.java:158)                                                                             在android.app.ActivityThread.main(ActivityThread.java:7224)                                                                             at java.lang.reflect.Method.invoke(Native Method)                                                                             在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:1230)                                                                             在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

0 个答案:

没有答案