在运行 React Native 和 Android 几天后,我添加了一些外部库,一切都很好。
重新启动计算机后,我回到了 React Native 项目的根目录并输入
npx react-native run-android
并返回错误消息
error 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.
Run Code Online (Sandbox Code Playgroud)
我的 Android 项目位于标准位置:MyReactProject\android。
有什么想法发生了什么或如何解决这个问题吗?