我使用 react native 制作了一个应用程序。该应用程序连接到我制作的 api。我按照以下步骤操作:https : //facebook.github.io/react-native/docs/signed-apk-android,现在如果我执行 react-native run-android --variant=release,该应用程序将无法工作。该应用程序已安装,但我无法登录该应用程序。有什么方法可以查看我是否遇到任何错误或其他问题?
我尝试寻找一种方法来显示调试控制台,即使该变体已发布,但我找不到任何
我希望该应用程序作为不在发布版本中的应用程序运行。
我有这个本机应用程序运行良好,但突然出现此错误:
error: bundling failed: Error: Unable to resolve module `fs` from `node_modules/eslint/lib/cli-engine/cli-engine.js`: fs could not be found within the project.
Run Code Online (Sandbox Code Playgroud)
我第一次拿到它时,我只是在测试这个应用程序,做我一整天都在做的事情,没有什么新鲜事,没有什么异常。现在我什至无法在我的设备上启动该应用程序。
我用这个脚本启动应用程序:yarn start-fresh
从我的 package.json:
"start-fresh": "cd android/ && ./gradlew clean && cd .. && rm -rf node_modules/ && yarn install && react-native start --reset-cache"
Run Code Online (Sandbox Code Playgroud)
然后在一个新的终端选项卡中,我执行yarn android
. 它在第二个选项卡中加载了所有内容,但是当我返回到第一个选项卡(我运行的位置yarn start-fresh
)时,它加载了一些东西,但随后出现错误。我不记得安装任何新软件包或更新软件包或类似的东西......
我尝试在线搜索解决方案,但找不到任何有用的信息。另外,在错误之后我有这个列表:
If you are sure the module exists, try these steps:
1. Clear watchman watches: watchman watch-del-all
2. Delete node_modules: rm -rf node_modules and run yarn …
Run Code Online (Sandbox Code Playgroud)