React Native打包时,报错 java.lang.NullPointerException (no error message)

FAILURE: Build failed with an exception.

what went wrong?
java.lang.NullPointerException (no error message)

This Problem created when the suddenly System restarted, then gradle file corrupted. and that corrupted file cached, so we need to Delete this file from your project

这个问题是因为系统重启时产生的,gradle文件发生错误,并且这个错误的文件会缓存起来,所以我们需要从项目中删掉这个文件。

因为我开发时是两个编辑软件同时用,切换时导致软件系统重启,应该是此原因引起的。

网上说这个文件位于项目的根目录中,但是在我项目的根目录中没有找到,不过我在项目的android目录下找到了这个文件,然后删除它后,重新打包,是可以打包成功的

猜你喜欢

转载自blog.csdn.net/Jerryman_GHJ/article/details/81943015
今日推荐