报错信息如下:
前言: 项目原react的版本是【16.0.0-alpha.6】,react-native的版本是【react-native": "0.44.0】,升级版本为react【18.0.0-rc.3】、react-native【0.68.0】。
解决方法:
- 根据报错定位到具体的文件
- 把
compile
更改为implementation
; - 把
androidTestCompile
更改成androidTestImplementation
- 把
testCompile
更改成testImplementation