android - 无法在 android 设备中打开相机 - react-native
问题描述
我正在尝试使用“react-native-nodemediaclient”实现实时视频流功能。并面临android设备中的问题。它在ios中正常工作。
使用 ignite 样板管理项目架构时无法在 android 设备中打开相机。它在ios中正常工作。当我使用简单的 react-native 创建时,它适用于 android 和 ios。
"dependencies": {
"apisauce": "^0.14.2",
"format-json": "^1.0.3",
"identity-obj-proxy": "^3.0.0",
"lodash": "^4.17.11",
"prop-types": "^15.6.1",
"querystringify": "1.0.0",
"ramda": "^0.26.1",
"react": "16.6.3",
"react-native": "0.57.8",
"react-native-animatable": "^1.3.0",
"react-native-config": "^0.10.0",
"react-native-extended-stylesheet": "^0.11.1",
"react-native-gesture-handler": "^1.0.9",
"react-native-nodemediaclient": "^0.1.2",
"react-native-permissions": "^1.1.1",
"react-native-vector-icons": "6.1.0",
"react-navigation": "^3.0.9",
"react-navigation-redux-helpers": "^2.0.6",
"react-redux": "^5.0.6",
"redux": "^4.0.0",
"redux-persist": "^5.10.0",
"redux-saga": "^0.16.0",
"reduxsauce": "0.7.0",
"seamless-immutable": "^7.1.4"
},
"devDependencies": {
"babel-core": "6.26.0",
"babel-eslint": "^10.0.1",
"babel-jest": "23.6.0",
"babel-plugin-ignite-ignore-reactotron": "^0.3.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react-native": "^3.0.2",
"enzyme": "^3.2.0",
"enzyme-adapter-react-16": "^1.1.0",
"eslint": "^5.11.1",
"eslint-plugin-react": "^7.12.2",
"eslint-plugin-react-native": "^3.5.0",
"eslint-plugin-eslint-comments": "^3.0.1",
"eslint-plugin-jsx-a11y": "^6.1.2",
"ignite-animatable": "^1.0.2",
"ignite-ir-boilerplate-andross": "^2.4.1",
"ignite-redux-persist": "^1.1.2",
"ignite-standard": "^1.0.0",
"ignite-vector-icons": "^1.1.1",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.51.1",
"mockery": "^2.1.0",
"react-dom": ">=16.3.3",
"react-test-renderer": "16.6.3",
"reactotron-react-native": "^2.1.0",
"reactotron-redux": "^2.1.0",
"reactotron-redux-saga": "^2.1.0"
}
解决方案
推荐阅读
- azure - 在 docker 容器上写入文件时权限被拒绝错误
- python - 如何使用openpyxl读取python中的合并单元格?
- spring-boot - 消费消息后在不同线程中运行 RabbitMQ 消费者
- git - 我们可以在 Azure DevOps 中锁定文件吗?
- javafx - 单击而不是双击开始编辑 TableCell
- javascript - Greensock 动画是如何在幕后工作的?
- reactjs - 如何在为传单设置弹出窗口时使用反应组件
- java - 如何将数组的元素从子类传递到主类
- javascript - Vue:使用 scoped 时 CSS 不适用于 D3 的 svg
- javascript - 单击时删除按钮