当前位置: 代码迷 >> Android >> 有高手知道这是怎么回事吗
  详细解决方案

有高手知道这是怎么回事吗

热度:375   发布时间:2016-05-01 22:29:53.0
有高手知道这是咋回事吗?
自己整了个JNI接口(myjni),用模拟器跑的。
有人遇到过这个问题吗?


04-28 17:38:39.550: DEBUG/dalvikvm(5865): Trying to load lib /data/data/cc.androidtest.jni/lib/libmyjni.so 0x43d01820
04-28 17:38:39.581: DEBUG/dalvikvm(5865): Added shared lib /data/data/cc.androidtest.jni/lib/libmyjni.so 0x43d01820
04-28 17:38:39.622: DEBUG/dalvikvm(5865): No JNI_OnLoad found in /data/data/cc.androidtest.jni/lib/libmyjni.so 0x43d01820
04-28 17:38:39.751: DEBUG/tag(5865): Jni Test Created !!!
04-28 17:38:39.751: DEBUG/dalvikvm(5865): +++ not scanning '/system/lib/libwebcore.so' for 'write' (wrong CL)
04-28 17:38:39.761: DEBUG/dalvikvm(5865): +++ not scanning '/system/lib/libmedia_jni.so' for 'write' (wrong CL)
04-28 17:38:39.761: DEBUG/dalvikvm(5865): +++ not scanning '/system/lib/libexif.so' for 'write' (wrong CL)
04-28 17:38:39.761: DEBUG/dalvikvm(5865): +++ not scanning '/system/lib/libsrec_jni.so' for 'write' (wrong CL)
04-28 17:38:39.761: WARN/dalvikvm(5865): No implementation found for native Lcc/androidtest/jni/JNI;.write ()V
04-28 17:38:39.771: DEBUG/AndroidRuntime(5865): Shutting down VM
04-28 17:38:39.771: WARN/dalvikvm(5865): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
04-28 17:38:39.781: ERROR/AndroidRuntime(5865): Uncaught handler: thread main exiting due to uncaught exception
04-28 17:38:39.800: ERROR/AndroidRuntime(5865): java.lang.UnsatisfiedLinkError: write
04-28 17:38:39.800: ERROR/AndroidRuntime(5865): at cc.androidtest.jni.JNI.write(Native Method)
04-28 17:38:39.800: ERROR/AndroidRuntime(5865): at cc.androidtest.jni.JniTest.onCreate(JniTest.java:16)


------解决方案--------------------
04-28 17:38:39.622: DEBUG/dalvikvm(5865): No JNI_OnLoad found in /data/data/cc.androidtest.jni/lib/libmyjni.so 0x43d01820
你先查查这个是为什么.
------解决方案--------------------
自己做的JNI 有难度哦 
 帮顶 学习
  相关解决方案