在Android应用程序上工作,当我点击我的按钮时,它应该带我到NDKmolActivity当我测试应用程序,我点击按钮我应用程序崩溃请帮助
EDIT I FOUND THE LIBS!!! :) NEW ERROR :(
logcat的:
08-09 00:15:09.762:D / dalvikvm(15550):尝试加载lib /data/app-lib/com.d4a.sts-1/libNdkmol.so 0x4239a320 08-09 00:15:09.762:D / dalvikvm(15550):添加了共享库 /data/app-lib/com.d4a.sts-1/libNdkmol.so 0x4239a320 08-09 00:15:09.762:D / dalvikvm(15550):找不到JNI_OnLoad /data/app-lib/com.d4a.sts-1/libNdkmol.so 0x4239a320,跳过init 08-09 00:15:09.772:D / ESmol(15550):数据目录是 / storage / emulated / 0 / PDB 08-09 00:15:09.772:D / NDKmol(15550): 初始化样本数据/storage/emulated/0/PDB/2POR.pdb 08-09 00:15:09.772:W / dalvikvm(15550):找不到本机的实现 Lcom / d4a / sts / NdkView; .nativeAdjustZoom:(I)[F 08-09 00:15:09.772: D / AndroidRuntime(15550):关闭VM 08-09 00:15:09.772: W / dalvikvm(15550):threadid = 1:线程退出未捕获的异常 (组= 0x41af4700)08-09 00:15:09.782:E / AndroidRuntime(15550):致命 例外:主08-09 00:15:09.782:E / AndroidRuntime(15550): java.lang.UnsatisfiedLinkError:找不到本机方法: com.d4a.sts.NdkView.nativeAdjustZoom :( I)[F 08-09 00:15:09.782: E / AndroidRuntime(15550):at com.d4a.sts.NdkView.nativeAdjustZoom(原生方法)08-09 00:15:09.782:E / AndroidRuntime(15550):at com.d4a.sts.NdkView.resetCamera(NdkView.java:62)08-09 00:15:09.782: E / AndroidRuntime(15550):at com.d4a.sts.NdkView。(NdkView.java:58)08-09 00:15:09.782: E / AndroidRuntime(15550):at com.d4a.sts.NDKmolActivity.onCreate(NDKmolActivity.java:110)08-09 00:15:09.782:E / AndroidRuntime(15550):at android.app.Activity.performCreate(Activity.java:5133)08-09 00:15:09.782:E / AndroidRuntime(15550):at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 08-09 00:15:09.782:E / AndroidRuntime(15550):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175) 08-09 00:15:09.782:E / AndroidRuntime(15550):at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261) 08-09 00:15:09.782:E / AndroidRuntime(15550):at android.app.ActivityThread.access $ 600(ActivityThread.java:141)08-09 00:15:09.782:E / AndroidRuntime(15550):at android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1256) 08-09 00:15:09.782:E / AndroidRuntime(15550):at android.os.Handler.dispatchMessage(Handler.java:99)08-09 00:15:09.782:E / AndroidRuntime(15550):at android.os.Looper.loop(Looper.java:137)08-09 00:15:09.782: E / AndroidRuntime(15550):at android.app.ActivityThread.main(ActivityThread.java:5103)08-09 00:15:09.782:E / AndroidRuntime(15550):at java.lang.reflect.Method.invokeNative(Native Method)08-09 00:15:09.782:E / AndroidRuntime(15550):at java.lang.reflect.Method.invoke(Method.java:525)08-09 00:15:09.782: E / AndroidRuntime(15550):at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:737) 08-09 00:15:09.782:E / AndroidRuntime(15550):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)08-09 00:15:09.782:E / AndroidRuntime(15550):at dalvik.system.NativeStart.main(原生方法)
如果您还有其他需要,请随时回复
问候
Rapsong11
答案 0 :(得分:0)
NDKmolActivity
尝试加载名为libNdkmol.so
的库文件。很可能,您忘了将它添加到您的项目中。
答案 1 :(得分:0)
您是编译过库还是从某个地方获取过它?