关于android的react native项目,我遇到的问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xsb_20171227/article/details/86298171
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-vector-icons:processReleaseResources'.
> java.io.IOException: Could not delete path 'E:\ASP\reader-sanyu\node_modules\react-native-vector-icons\android\build\generated\source\r\release\android\support\v7'.


在启动项目的时候,出现了此问题,说是无法删除某个文件
解决办法:dos窗口通过命令进入到项目的android目录,然后执行“gradlew.bat clean”。然后重新启动项目就可以了

启动项目的时候出现上面这重红屏,关键错误信息是无法连接到本地服务10.0.3.2:8081.
解决办法:在项目的根目录执行命令“react-native start”

猜你喜欢

转载自blog.csdn.net/xsb_20171227/article/details/86298171