将openCV 3.2.0与android studio集成时出错

时间:2017-06-28 19:28:18

标签: android android-studio opencv android-ndk

我在将openCV与android studio集成时遇到此错误。
我是android新手,无法理解为什么会出现这个错误。

  

错误:任务':app:compileDebugNdk'的执行失败。   错误:您的项目包含C ++文件,但它没有使用受支持的本机构建系统。   考虑使用CMake或ndk-build与稳定的Android Gradle插件集成:    https://developer.android.com/studio/projects/add-native-code.html   或使用实验插件:    https://developer.android.com/studio/build/experimental-plugin.html

1 个答案:

答案 0 :(得分:1)

我建议您尝试使用Google提供的NDK示例之一,并熟悉在Android Studio上尝试OpenCV等大型库之前使用NDK。答案here非常详细,可能会有所帮助。