标签:删除 folder androi 有用 启动命令 native tin poi cat
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 ,清除项目缓存,都没有用,最后发现是Android的文件问题,删除 项目文件中 /android/app/ 下面的bulid 文件,然后Android软件重新编译,命令行重新输入启动命令,项目启动成功。
react-native 使用react-native run-android 启动项目 报错 Android project not found
标签:删除 folder androi 有用 启动命令 native tin poi cat
原文地址:https://www.cnblogs.com/ymanwei/p/12667818.html