当我尝试运行OpenCV示例进行面部检测时出现此错误.我已经设置了Android SDK路径和NDK路径.同时设置了androID.mk文件和Application.mk文件.我不明白为什么会收到此错误.请帮忙.
AndroID.mk
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) #OPENCV_CAMERA_MODulES:=off #OPENCV_INSTALL_MODulES:=off #OPENCV_liB_TYPE:=SHARED ifdef OPENCV_ANDROID_SDK ifneq ("","$(wildcard $(OPENCV_ANDROID_SDK)/OpenCV.mk)") include ${OPENCV_ANDROID_SDK}/OpenCV.mk else include ${OPENCV_ANDROID_SDK}/sdk/native/jnI/OpenCV.mk endif else include C:/Users/m/Downloads/opencv-3.2.0-androID-sdk/OpenCV-androID-sdk/sdk/native/jnI/OpenCV.mkendifLOCAL_MODulE := detection_based_trackerLOCAL_SRC_fileS := DetectionBasedTracker_jni.cppLOCAL_C_INCLUDES += $(LOCAL_PATH)LOCAL_LDliBS += -llog -ldlinclude $(BUILD_SHARED_liBRARY)
Application.mk
APP_STL := gnustl_staticAPP_CPPFLAGS := -frtti -fexceptionsAPP_ABI := armeabi-v7aAPP_PLATFORM := androID-25
Local.propertIEs
ndk.dir=C\:\Users\m\documents\androID-ndk-r13b-windows-x86_64\androID-ndk-r13bsdk.dir=C\:\Users\m\AppData\Local\AndroID\sdk1
解决方法:
确保openCVSamplefacedetection build.gradle文件中存在此块:
externalNativeBuild { ndkBuild { path 'src/main/jni/AndroID.mk' }}
另外,请确保已将AndroID NDK的PATH导出到环境变量.
总结以上是内存溢出为你收集整理的android-java.lang.UnsatisfiedLinkError:dalvik.system.PathClassLoader [DexPathList…]找不到“ libdetection全部内容,希望文章能够帮你解决android-java.lang.UnsatisfiedLinkError:dalvik.system.PathClassLoader [DexPathList…]找不到“ libdetection所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)