
这两天同事在写项目的过程中,启动Android端进行编译报了如上的错误,从报错中可以知道,是因为第三方库react-native-device-info引起的,从其源码中可以看到:

它的安卓部分依赖了google的服务,为啥要依赖这个服务呢?不是特别清楚。既然罪魁祸首是这个库,就去github上看看她的issues吧。
https://github.com/rebeccahughes/react-native-device-info/issues/414
最终我们找到解决方案,

本文标题:ReactNative安卓端报错Could not find p
本文链接:https://www.haomeiwen.com/subject/pfwceftx.html
网友评论