我在 Play 商店发布了一个应用程序,我收到了崩溃报告,但我不知道如何解决它,跟踪:
Crashed: Thread: SIGSEGV 0x0000000000000010
at (Manquant)()
at (Manquant)()
at (Manquant)()
Run Code Online (Sandbox Code Playgroud)
当我运行命令时,我创建了一个新的新的react native项目:
react-native run-android
Run Code Online (Sandbox Code Playgroud)
我收到此消息:
纱线运行v1.16.0
$ react-native运行Android
信息JS服务器已在运行。
信息正在安装应用程序...
启动Gradle守护程序,无法重用1个不兼容的守护程序,请使用--status获取详细信息
*:ReactNative:无法运行程序“ ./node_modules/.bin/react-native”(在目录“ C:\ Users \ yelha \ Desktop \ rn_project_60 \ android ..”中):CreateProcess错误= 2,系统找不到指定的文件
:ReactNative:自动导入本机模块失败。*
配置项目:app
*:ReactNative:无法运行程序“ ./node_modules/.bin/react-native”(在目录“ C:\ Users \ yelha \ Desktop \ rn_project_60 \ android ..”中):CreateProcess错误= 2,系统找不到指定的文件
:ReactNative:自动导入本机模块失败。*
任务:app:installDebug
10:19:24 V / ddms:执行:运行am get-config
10:19:24 V / ddms:在'5200127cb85a7465'上执行'am get-config':EOF命中。读:-1
10:19:24 V / ddms:执行:返回
在app:debug的'SM-A520F-8.0.0'上安装APK'app-debug.apk'
10:19:24 D / app-debug.apk:将app-debug.apk上传到设备'5200127cb85a7465'
10:19:24 D /设备:将文件上传到设备'5200127cb85a7465'
10:19:24 D / ddms:读取C:\ Users \ yelha \ Desktop \ rn_project_60 \ android \ app …
卸载后,react-native-cli
我运行此命令以使用打字稿模板启动 RN 项目:
npx react-native init MyApp --template react-native-template-typescript
Run Code Online (Sandbox Code Playgroud)
但我收到了这个错误:
警告 jest > jest-cli > jest-config > jest-environment-jsdom > jsdom
left-pad@1.3.0: 使用 String.prototype.padStart() 错误发生意外错误:“ https://registry.yarnpkg.com/react-native-template-react-native-template-typescript : Not found” .info 如果您认为这是一个错误,请打开.....
[1/2] Removing module react-native-template-react-native-template-typescript...
error This module is not specified in a package .json 文件。
信息 访问https://yarnpkg.com/en/docs/cli/remove获取有关此命令的文档。警告无法清理 node_modules/react-native-template-react-native-template-typescript 中的模板临时文件。这不是严重错误,您可以处理您的应用程序。
(node:8548) UnhandledPromiseRejectionWarning: 错误: 命令失败: yarn add react-native-template-react-native-template-typescript