gpt4 book ai didi

android - 将OpenCV 3.2.0与android studio集成时出错

转载 作者:行者123 更新时间:2023-12-02 17:41:11 24 4
gpt4 key购买 nike

在将openCV与android studio集成时出现此错误。

我是Android新手,无法理解为什么会发生此错误。

Error:Execution failed for task ':app:compileDebugNdk'. Error: Your project contains C++ files but it is not using a supported native build system. Consider using CMake or ndk-build integration with the stable Android Gradle plugin: https://developer.android.com/studio/projects/add-native-code.html or use the experimental plugin: https://developer.android.com/studio/build/experimental-plugin.html.

最佳答案

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

关于android - 将OpenCV 3.2.0与android studio集成时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44811006/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com