Android 设备USB摄像头框架,主要都是基于UVCCamera(github: https://github.com/saki4510t/UVCCamera )在此之上,AndroidUSBCamera最新3.x版本支持了多摄像头的使用。(github:https://github.com/jiangdongguo/AndroidUSBCamera)
这里记录一下运行示例时遇到问题的解决方法;
一:UVCCamera
1. Execution failed for task ':libuvccamera:ndkBuild'.
> A problem occurred starting process 'command 'null/ndk-build''
解决方法:
项目下:local.properties 是否配置了 ndk ndk.dir={path to Android SDK on your storage}
2. Process 'command 'D:\SDK\ndk-bundle/ndk-build.cmd'' finished with non-zero exit value 2
解决方案:由于NDK 17之后不再支持目标