采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
我在rn中下载了react-native-webview组件, 在build.gradle文件中allprojects/repositories节点添加了maven: maven{ url “$rootDir/…/node_modules/react-native-webview/android” } 也在app/build.gradle文件中dependencies节点添加了依赖 implementation ':react-native-webview’ 但是,没有识别成功
不需要这么复杂啊,按照https://github.com/react-native-community/react-native-webview
上的安装说明安装就可以了:
如果你的项目支持了AndroidX:
yarn add react-native-webview@androidx
否则通过:
yarn add react-native-webview
登录后可查看更多问答,登录/注册
解锁React Native开发应用新姿势,React Native新版本热门技术
1.8k 2
1.5k 3
2.0k 4
2.1k 2
1.3k 1
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号