Opencv和Tensorflow无法在一个Android项目中运行

我目前正在开发一个Android应用程序 .

我正在使用Android NDK在C中运行opencv

一切都在工作,直到我导入tensorflow来检测图像的旋转(图像分类器) . tensorflow代码运行正常(我已在另一个android项目中测试过)但是当我梳理这两个代码时,我收到错误 . 请帮助我的项目因此而滞后 .

我已经检查了tensorflow github repo类似的问题已经说明但没有找到解决方案 .

--------- beginning of crash

10-09 22:21:15.572 7387-7387 /? E / AndroidRuntime:FATAL EXCEPTION:main进程:com.baurasia.pranav.digimother,PID:7387 java.lang.UnsatisfiedLinkError:dalvik.system.PathClassLoader [DexPathList [[zip file“/data/app/com.baurasia.pranav . digimother-0NgVxe-pLiV2LPUwElaVZQ == / base.apk“,zip文件”/data/app/com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ==/split_lib_dependencies_apk.apk“,zip文件”/ data / app / com . baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ == / split_lib_resources_apk.apk“,zip文件”/data/app/com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ==/split_lib_slice_0_apk.apk“,zip文件”/ data / app / com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ == / split_lib_slice_1_apk.apk“,zip文件”/data/app/com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ==/split_lib_slice_2_apk.apk“,zip文件“/data/app/com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ==/split_lib_slice_3_apk.apk”,zip文件“/data/app/com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ==/split_lib_slice_4_apk.apk “,zip文件”/ d ata / app / com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ == / split_lib_slice_5_apk.apk“,zip file”/data/app/com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ==/split_lib_slice_6_apk.apk“, zip文件“/data/app/com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ==/split_lib_slice_7_apk.apk”,zip文件“/data/app/com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ==/split_lib_slice_8_apk .apk“,zip文件”/data/app/com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.baurasia.pranav.digimother-0NgVxe- pLiV2LPUwElaVZQ == / lib / arm64,/ data / app / com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQEX / base.apk!/ lib / arm64-v8a,/ data / app / com.baurasia.pranav.digimother -0NgVxe-pLiV2LPUwElaVZQ == / split_lib_dependencies_apk.apk!/ lib / arm64-v8a,/ data / app / com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ / plit_lib_resources_apk.apk!/ lib / arm64-v8a,/ data /app/com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ==/split_lib _slice_0_apk.apk!/ lib / arm64-v8a,/ data / app / com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ== /split_lib_slice_1_apk.apk!/ lib / arm64-v8a,/ data / app / com.baurasia . pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ == / split_lib_slice_2_apk.apk!/ lib / arm64-v8a,/ data / app / com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ== /split_lib_slice_3_apk.apk!/ lib / arm64-v8a ,/ data / app / com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ== /split_lib_slice_4_apk.apk!/ lib / arm64-v8a,/ data / app / com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ== / split_lib_slice_5_apk.apk!/ lib / arm64-v8a,/ data / app / com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ== /split_lib_slice_6_apk.apk!/ lib / arm64-v8a,/ data / app / com.baurasia . pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ == / split_lib_slice_7_apk.apk!/ lib / arm64-v8a,/ data / app / com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ== /split_lib_slice_8_apk.apk!/ lib / arm64-v8a ,/ data / app / com.baurasia.pranav.digimother-0NgVxe-pLiV2LPUwElaVZQ== /split_lib_slice_9_apk.apk!/ lib / arm64- v8a,/ system / lib64,/ vendor / lib64]]]在java.lang.System.loadLibrary(System.java)的java.lang.Runtime.loadLibrary0(Runtime.java:1011)中找不到“libopencv_java3.so” :1657)位于android.app.ActivityThread的android.app.Instrumentation.newActivity(Instrumentation.java:1174)的java.lang.Class.newInstance(Native Method)中的com.scanlibrary.ScanActivity . (ScanActivity.java:126) .performLaunchActivity(ActivityThread.java:2891)在android.app.A活动中的android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3078)android.app.ActivityThread $ H.handleMessage的android.app.ActivityThread.-wrap11(未知来源:0) ActivityThread.java:1794)android.app.Handler.dispatchMessage(Handler.java:106)android.app.Looper.loop(Looper.java:187)android.app.ActivityThread.main(ActivityThread.java:7025) )com.android.internal.os.ZygoteInit.main中的com.android.internal.os.RuntimeInit $ MethodAndArgsCaller.run(RuntimeInit.java:514)中的java.lang.reflect.Method.invoke(Native Method)(ZygoteInit)的.java:888)

回答(0)