【发布时间】:2019-06-16 09:45:44
【问题描述】:
我将 openCV 本机库添加到我的(在开发中)项目中。我正在关注这个guide。我在构建项目的最后一步遇到了麻烦,在 OpenCV-android-sdk 文件夹中:CameraGLSurfaceView.java 在R.styleable.CameraBridgeViewBase 出现错误cannot find symbol variable styleable。
我尝试在我的values 文件夹中添加一个attrs.xml 文件,其中包含以下内容:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name = "CameraBridgeViewBase" >
<attr name="show_fps" format="boolean"/>
<attr name="camera_id" format="integer" >
<enum name="any" value="-1" />
<enum name="back" value="2" />
<enum name="front" value="1" />
</attr>
</declare-styleable>
</resources>
正如它在this 中所说的非常相似的错误。但是当我重建我的项目时没有任何改变。
【问题讨论】:
标签: android android-ndk native opencv4android