高手帮忙看看哇
我在用android2.4.2,ndk和eclipse开发android
C++文件放在JNI里
NDK编译通过了
但是一上真机就出现个错误,求大牛指点原因
04-10 12:05:19.960: E/AndroidRuntime(11567): FATAL EXCEPTION: main
04-10 12:05:19.960: E/AndroidRuntime(11567): java.lang.ExceptionInInitializerError
04-10 12:05:19.960: E/AndroidRuntime(11567): at java.lang.Class.newInstanceImpl(Native Method)
04-10 12:05:19.960: E/AndroidRuntime(11567): at java.lang.Class.newInstance(Class.java:1409)
04-10 12:05:19.960: E/AndroidRuntime(11567): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
04-10 12:05:19.960: E/AndroidRuntime(11567): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1565)
04-10 12:05:19.960: E/AndroidRuntime(11567): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
04-10 12:05:19.960: E/AndroidRuntime(11567): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
04-10 12:05:19.960: E/AndroidRuntime(11567): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
04-10 12:05:19.960: E/AndroidRuntime(11567): at android.os.Handler.dispatchMessage(Handler.java:99)
04-10 12:05:19.960: E/AndroidRuntime(11567): at android.os.Looper.loop(Looper.java:130)
04-10 12:05:19.960: E/AndroidRuntime(11567): at android.app.ActivityThread.main(ActivityThread.java:3691)
04-10 12:05:19.960: E/AndroidRuntime(11567): at java.lang.reflect.Method.invokeNative(Native Method)
04-10 12:05:19.960: E/AndroidRuntime(11567): at java.lang.reflect.Method.invoke(Method.java:507)
04-10 12:05:19.960: E/AndroidRuntime(11567): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
04-10 12:05:19.960: E/AndroidRuntime(11567): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
04-10 12:05:19.960: E/AndroidRuntime(11567): at dalvik.system.NativeStart.main(Native Method)
04-10 12:05:19.960: E/AndroidRuntime(11567): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1312]: 2586 cannot locate '_ZN2cv3Mat8copySizeERKS0_'...
04-10 12:05:19.960: E/AndroidRuntime(11567): at java.lang.Runtime.loadLibrary(Runtime.java:434)
04-10 12:05:19.960: E/AndroidRuntime(11567): at java.lang.System.loadLibrary(System.java:554)
04-10 12:05:19.960: E/AndroidRuntime(11567): at com.amani.main.chooser.<clinit>(chooser.java:139)
04-10 12:05:19.960: E/AndroidRuntime(11567): ... 15 more
------解决方案--------------------
真机是不是找不到你的文件呢