小编Ali*_*tel的帖子

EXPO [Android] [EAS] 构建在启动时崩溃

我最近从 SDK 43 迁移到 Expo SDK 45,还从经典版本升级到 EAS CLI,并且我拥有托管工作流程。

当我使用命令创建 android 版本时eas build --profile preview --platform android。它成功创建了构建,但在启动屏幕上崩溃,没有任何堆栈跟踪。

当我使用开发客户端或 Expo GO 测试构建时,没有任何错误或警告。

在这里我分享我的 package.json

{
  "name": "native",
  "version": "1.0.0",
  "private": "true",
  "main": "./index.js",
  "scripts": {
    "postinstall": "patch-package; cp -f patches/manual/createKeyboardAwareNavigator.js ./node_modules/@react-navigation/native/src",
    "start": "expo start --dev-client",
    "android": "expo run:android",
    "ios": "expo run:ios",
    "eject": "expo eject",
    "test": "node ./node_modules/jest/bin/jest.js --watchAll",
    "prettier": "prettier --write 'src/**/*{.js,.jsx}'",
    "lint": "eslint -c ../../.eslintrc 'src' --ext '.js,.jsx'",
    "lint-fix": "eslint -c ../../.eslintrc 'src' --ext '.js,.jsx' --fix",
    "fix-nav": "cp …
Run Code Online (Sandbox Code Playgroud)

android react-native expo eas

6
推荐指数
2
解决办法
3710
查看次数

标签 统计

android ×1

eas ×1

expo ×1

react-native ×1