Edd*_*ddy 16 android webrtc reactjs react-native
我创建了一个空白的 react native 应用程序并添加了 webrtc 包,现在当我在手机上安装 react native 时,安装后它会自动关闭,我不知道为什么应用程序会关闭。我在终端中唯一注意到的是,它说找不到并排兼容的 NDK 版本。我的 Package.json 是
{
"name": "calling_App",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"react": "16.11.0",
"react-native": "0.62.2",
"react-native-webrtc": "^1.75.3"
},
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/runtime": "^7.9.2",
"@react-native-community/eslint-config": "^1.0.0",
"babel-jest": "^25.3.0",
"eslint": "^6.8.0",
"jest": "^25.3.0",
"metro-react-native-babel-preset": "^0.59.0",
"react-test-renderer": "16.11.0"
},
"jest": {
"preset": "react-native"
}
}
Run Code Online (Sandbox Code Playgroud)
小智 25
你有 NDK Side-by-Side installed?
在 Android Studio 中检查您的 SDK 管理器。如果没有,请安装、重新启动工作站并再次尝试运行该项目。
| 归档时间: |
|
| 查看次数: |
16215 次 |
| 最近记录: |