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