reactjs - 试图在 React Native 中注册两个同名 RTCVideoView 的 View
问题描述
我正在尝试在 Android 上运行我的应用程序但我收到此错误我不知道为什么会收到此错误我不知道是什么导致我的项目中出现此错误我尝试了多种方法来解决此问题但是仍然无法解决此问题。
试图注册两个同名的视图 RTCVideoView
我的 Package.json 是
{
"name": "Hello World",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"@ptomasroos/react-native-multi-slider": "^1.0.0",
"@react-native-community/async-storage": "^1.6.2",
"@react-native-community/slider": "^2.0.0",
"axios": "^0.19.0",
"connectycube-reactnative": "^1.7.3",
"lodash": "^4.17.15",
"moment": "^2.24.0",
"prop-types": "^15.7.2",
"react": "16.8.6",
"react-native": "0.60.5",
"react-native-autogrow-textinput": "^5.2.0",
"react-native-cache-store": "^1.0.2",
"react-native-calendars": "^1.212.0",
"react-native-deck-swiper": "^1.6.7",
"react-native-image-picker": "^1.1.0",
"react-native-linear-gradient": "^2.5.6",
"react-native-modal-datetime-picker": "^7.5.0",
"react-native-navigation": "^3.0.0",
"react-native-scrollable-tab-view": "^0.10.0",
"react-native-swiper": "^1.5.14",
"react-native-vector-icons": "^6.6.0",
"react-native-view-overflow": "^0.0.4",
"react-native-webrtc": "^1.75.0",
"react-redux": "^7.1.1",
"redux": "^4.0.4",
"redux-logger": "^3.0.6",
"redux-persist": "^6.0.0",
"redux-thunk": "^2.3.0",
"rn-prompt": "^1.0.4"
},
"devDependencies": {
"@babel/core": "^7.6.0",
"@babel/runtime": "^7.6.0",
"@react-native-community/eslint-config": "^0.0.5",
"babel-jest": "^24.9.0",
"eslint": "^6.4.0",
"jest": "^24.9.0",
"metro-react-native-babel-preset": "^0.56.0",
"react-test-renderer": "16.8.6"
},
"jest": {
"preset": "react-native"
}
}
任何帮助,将不胜感激。
解决方案
您只需要通过以下命令清理缓存
npm cache clean --force
这很可能会解决您的问题
推荐阅读
- java - 标点符号(RegExp)被计为单词
- android - Android Fileprovider 无法获取 uri
- python - Matplotlib - 饼图 - ValueError:“标签”的长度必须为“x”
- c++ - 如何在汽车类中定义改变汽车位置的方法
- mysql - MySQL 无法连接 Ubuntu
- javascript - 前面参数的默认值
- wordpress - 忽略一张特定图像的 max_srcset_image_width 过滤器
- python - 如何忽略列表文件中暂时和随机不存在的名称?
- javascript - 如何验证 Angular js 中的字段(非空白)
- c# - 解码包含 JSON 字符串的 JSON 字符串