createDefault方法生成错误。我收到错误日志,如下所示。但我的目录结构看起来很好(我认为)。
目录:
gen libs obj res src .classpath .project AndroidManifest.xml ic_launcher-web.png proguard-project.txt project.properties .settings assets bin Debug
/ libs:javacpp.jar javacv.jar armeabi android-support-v4.jar
/库/ armeabi:libjniavfilter.so libjniavformat.so libjniavutil.so libjnicvkernels.so libjniopencv_calib3d.so libjniopencv_contrib.so libjniopencv_core.so libjniopencv_features2d.so libjniopencv_flann.so libjniopencv_highgui.so libjniopencv_imgproc.so libjniopencv_legacy.so libjniopencv_ml.so libjniopencv_nonfree.so libjniopencv_objdetect.so libjniopencv_photo.so libjniopencv_stitching.so libjniopencv_video.so libjniopencv_videostab.so libjnipostproc.so libjniswresample.so libjniswscale.so libopencv_calib3d.so libopencv_contrib.so libopencv_core.so libopencv_features2d.so libopencv_flann.so libopencv_gpu.so libopencv_highgui.so libopencv_imgproc.so libopencv_info。所以libopencv_legacy.so libopencv_ml.so libopencv_nonfree.so libopencv_objdetect.so libopencv_photo.so libopencv_stitching.so libopencv_video.so libopencv_videostab.so libtbb.so libjniARToolKitPlus.so libjniavcodec.so libjniavdevice.so
错误日志:
04-17 22:33:16.001:E / AndroidRuntime(12577):FATAL EXCEPTION:main 04-17 22:33:16.001:E / AndroidRuntime(12577):java.lang.ExceptionInInitializerError 04-17 22:33 :16.001:E / AndroidRuntime(12577):at com.example.myapp.Opencvpart.generatePanorama(Opencvpart.java:133)04-17 22:33:16.001:E / AndroidRuntime(12577):at com.example.myapp。 Opencvpart.onOptionsItemSelected(Opencvpart.java:118)04-17 22:33:16.001:E / AndroidRuntime(12577):at android.app.Activity.onMenuItemSelected(Activity.java:2534)04-17 22:33:16.001: E / AndroidRuntime(12577):at com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:962)04-17 22:33:16.001:E / AndroidRuntime(12577):at com.android.internal .view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:735)04-17 22:33:16.001:E / AndroidRuntime(12577):at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java: 149)04-17 22:33:16.001:E / AndroidRuntime(12577):at com.android.internal.view.menu.MenuBuilder.performItemAction(M enuBuilder.java:874)04-17 22:33:16.001:E / AndroidRuntime(12577):at com.android.internal.view.menu.ActionMenuView.invokeItem(ActionMenuView.java:514)04-17 22:33: 16.001:E / AndroidRuntime(12577):at com.android.internal.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:99)04-17 22:33:16.001:E / AndroidRuntime(12577):at android.view .View.performClick(View.java:4084)04-17 22:33:16.001:E / AndroidRuntime(12577):at android.view.View $ PerformClick.run(View.java:16987)04-17 22:33 :16.001:E / AndroidRuntime(12577):在android.os.Handler.handleCallback(Handler.java:615)04-17 22:33:16.001:E / AndroidRuntime(12577):在android.os.Handler.dispatchMessage( Handler.java:92)04-17 22:33:16.001:E / AndroidRuntime(12577):在android.os.Looper.loop(Looper.java:137)04-17 22:33:16.001:E / AndroidRuntime( 12577):在android.app.ActivityThread.main(ActivityThread.java:4794)04-17 22:33:16.001:E / AndroidRuntime(12577):at java.lang.reflect.Method.invokeNative(Native Method)04- 17 22:33:16.001:E / And roidRuntime(12577):at java.lang.reflect.Method.invoke(Method.java:511)04-17 22:33:16.001:E / AndroidRuntime(12577):at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller .run(ZygoteInit.java:789)04-17 22:33:16.001:E / AndroidRuntime(12577):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)04-17 22:33 :16.001:E / AndroidRuntime(12577):at dalvik.system.NativeStart.main(Native Method)04-17 22:33:16.001:E / AndroidRuntime(12577):引起:java.lang.ExceptionInInitializerError 04-17 22 :33:16.001:E / AndroidRuntime(12577):at java.lang.Class.classForName(Native Method)04-17 22:33:16.001:E / AndroidRuntime(12577):at java.lang.Class.forName(Class .java:217)04-17 22:33:16.001:E / AndroidRuntime(12577):at com.googlecode.javacpp.Loader.load(Loader.java:561)04-17 22:33:16.001:E / AndroidRuntime (12577):at com.googlecode.javacpp.Loader.load(Loader.java:540)04-17 22:33:16.001:E / AndroidRuntime(12577):at com.googlecode.javacv.cpp.opencv_stitching $ Stitcher。 (opencv_stitching.java: 1165)04-17 22:33:16.001:E / AndroidRuntime(12577):... 20更多04-17 22:33:16.001:E / AndroidRuntime(12577):引起:java.lang.UnsatisfiedLinkError:无法加载library:link_image [1891]:149无法加载所需的库' libopencv_stitching.so'对于' libjniopencv_stitching.so' (find_library [1201]:149' libopencv_stitching.so'以前无法加载)04-17 22:33:16.001:E / AndroidRuntime(12577):at java.lang.Runtime.loadLibrary(Runtime.java :370)04-17 22:33:16.001:E / AndroidRuntime(12577):at java.lang.System.loadLibrary(System.java:535)04-17 22:33:16.001:E / AndroidRuntime(12577):在com.googlecode.javacpp.Loader.loadLibrary(Loader.java:711)04-17 22:33:16.001:E / AndroidRuntime(12577):at com.googlecode.javacpp.Loader.load(Loader.java:586) 04-17 22:33:16:001:E / AndroidRuntime(12577):at com.googlecode.javacpp.Loader.load(Loader.java:540)04-17 22:33:16.001:E / AndroidRuntime(12577):at com.googlecode.javacv.cpp.opencv_stitching。(opencv_stitching.java:92)04-17 22:33:16.001:E / AndroidRuntime(12577):... 25更多04-17 22:33:16.001:E / AndroidRuntime (12577):引起:java.lang.UnsatisfiedLinkError:无法加载库:link_image [1891]:149无法加载所需的库' ../../ lib / libopencv_gpu.so'对于' libopencv_stitching.so' (load_library [1093]:Library' ../../ lib / libopencv_gpu.so' not found)04-17 22:33:16.001:E / AndroidRuntime(12577):at java.lang.Runtime .loadLibrary(Runtime.java:370)04-17 22:33:16.001:E / AndroidRuntime(12577):at java.lang.System.loadLibrary(System.java:535)04-17 22:33:16.001:E / AndroidRuntime(12577):at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:711)04-17 22:33:16.001:E / AndroidRuntime(12577):at com.googlecode.javacpp.Loader.load( Loader.java:577)04-17 22:33:16.001:E / AndroidRuntime(12577):... 27更多
我应该改变什么才能让它发挥作用?