参考这篇博客进行安装,对中间遇到的一些问题做一下记录:
-
导入module时,不能rename:
-
添加依赖后编译报错:
ERROR: Unable to resolve dependency for ‘:app@debugUnitTest/compileClasspath’: Could not resolve project :openCVLibrary
解决方法:
在opencv文件夹中的build.gradle中,将首行修改为:apply plugin: ‘com.android.library’, 并删除 defaultConfig中的applicationId “org.opencv”。