我收到错误消息:无法找到项目的匹配配置:react-native-gesture-handler:易用的配置都没有属性。在本机响应中。
“ react-native-gesture-handler”:已将“ ^ 1.1.0”添加到项目中
我已经将这些包含在我的本地反应项目中
"dependencies": {
"react": "16.6.3",
"react-native": "0.58.6",
"react-native-gesture-handler": "^1.1.0",
"react-navigation": "^3.3.2"
},
"devDependencies": {
"babel-core": "7.0.0-bridge.0",
"babel-jest": "24.6.0",
"jest": "24.6.0",
"metro-react-native-babel-preset": "0.53.1",
"react-test-renderer": "16.6.3"
},
"jest": {
"preset": "react-native"
}
无法在avd上安装应用。我想在android虚拟设备(avd)中运行此项目。
答案 0 :(得分:2)
如果使用的是Windows,请在settings.gradle中更改
project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '..\node_modules\react-native-gesture-handler\android')
代替:
project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '..\\node_modules\\react-native-gesture-handler\\android')
参考:
https://github.com/kmagiera/react-native-gesture-handler/issues/436
答案 1 :(得分:0)
这应该解决
react-native link react-native-gesture-handler