我是反应原生的新手,我在运行命令react-native run-android
时收到此错误。在安装和卸载react-native-speech-to-text
收到此错误消息之后,以前的应用程序运行正常。
我试过以下
但我无法解决问题。 提前致谢
的package.json
{
"name": "App",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"moment": "^2.18.1",
"react": "16.0.0-alpha.12",
"react-native": "0.46.4",
"react-native-action-button": "^2.8.0",
"react-native-vector-icons": "^4.3.0",
"react-navigation": "^1.0.0-beta.11",
"uuid": "^3.1.0"
},
"devDependencies": {
"babel-jest": "20.0.3",
"babel-preset-react-native": "2.1.0",
"jest": "20.0.4",
"react-test-renderer": "16.0.0-alpha.12"
},
"jest": {
"preset": "react-native"
},
"rnpm": {
"assets": [
"android/app/src/main/assets/fonts/Montserrat"
]
}
}
答案 0 :(得分:0)
将react-native
的版本更改为0.48
,并且工作正常。