react-native使用react-native run-android 启动项目报错Android project not found

人生难得几回搏,此时不搏待何时。这篇文章主要讲述react-native使用react-native run-android 启动项目报错Android project not found相关的知识,希望能为你提供帮助。
react-native 项目意外关闭  重新启动项目  启动命令    react-native run-android    然后 项目报错 
Android project not found. Are you sure this is a React Native project? If your Android files are located in a non-standard location (e.g. not inside ‘android‘ folder), consider setting `project.android.sourceDir` option to point to a new location. Run CLI with --verbose flag for more details.
【react-native使用react-native run-android 启动项目报错Android project not found】找了很多办法,比如更新react-native ,清除项目缓存,都没有用,最后发现是Android的文件问题,删除    项目文件中  /android/app/ 下面的bulid 文件,然后Android软件重新编译,命令行重新输入启动命令,项目启动成功。

    推荐阅读