安装一个信号后,它在端子中抛出以下错误
失败:构建失败,并出现异常。
- 出了什么问题:
无法确定任务':react-native-onesignal:compileDebugAidl'的依赖关系。
无法解决配置':react-native-onesignal:debugCompileclasspath'的所有任务依赖关系。 找不到与com.google.android.gms:play-services-ads-identifier:12. +匹配的任何版本。 不匹配的版本:
NPM版本 5.6.0
节点版本 9.8.0
这是我的package.json文件
"dependencies": {
"accordion-collapse-react-native": "^0.1.11","moment": "^2.24.0","native-base": "^2.12.1","react": "16.8.3","react-native": "0.59.9","react-native-admob": "^2.0.0-beta.6","react-native-af-video-player": "^0.2.1","react-native-elements": "^1.2.0","react-native-fbsdk": "^1.0.4","react-native-gesture-handler": "^1.4.1","react-native-google-signin": "^2.1.0","react-native-htmlview": "^0.14.0","react-native-image-picker": "^1.1.0","react-native-keep-awake": "^4.0.0","react-native-linear-gradient": "^2.5.6","react-native-material-textfield": "^0.12.0","react-native-modal": "^11.3.1","react-native-onesignal": "^3.5.0","react-native-orientation": "^3.1.3","react-native-popup-menu": "^0.15.6","react-native-searchbar": "^1.16.0","react-native-simple-toast": "0.0.8","react-native-swiper": "^1.5.14","react-native-vector-icons": "^6.6.0","react-native-video": "^5.1.0-alpha1","react-native-video-controls": "^2.2.3","react-navigation": "^3.11.0","rn-fetch-blob": "^0.11.2"
}
1根据文档安装一个信号。