Expo应用程序在开发方面运作良好,但是从Google Play下载时会崩溃

发布于 2025-01-19 12:40:49 字数 1272 浏览 1 评论 0原文

我使用Expo开发了我的应用程序,并且能够通过Expo应用使用模拟器和实际设备对其进行测试。但是,当我上传在Google Play上并下载时,它立即崩溃。苹果也拒绝了它崩溃了。我没有任何日志要继续前进,我一直在徒劳地重现Expo中的错误。我尝试运行EXPO开始-NO-DEVexpo start -no-dev -minify ,但这无济于事。这是我的JSON文件

{
  "expo": {
    "name": "App Name",
    "slug": "App-Name",
    "version": "2.0.2",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true,
      "config": {
        "googleMobileAdsAppId": "Ca-app-pub-xxxxx"
      },
      "bundleIdentifier": "com.xxxxxx",
      "buildNumber": "2.0.2"
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/adaptive-icon.png",
        "backgroundColor": "#FFFFFF"
      },
      "config": {
        "googleMobileAdsAppId": "Ca-app-pub-xxxx"
      },
      "package": "com.xxxxxx",
      "versionCode": 6,
      "permissions":[]
    },
    "web": {
      "favicon": "./assets/favicon.png"
    }
  }
}

I developed my app using expo and I was able to test it using both simulator and actual devices through the expo app. However, when I uploaded on google play and downloaded it, it crashes right away. It also got rejected by apple saying that it crashed. I don't have any logs to go on and I have been trying to reproduce the error in expo in vain. I tried running expo start --no-dev and expo start --no-dev --minify but that did not help. Here is my json file

{
  "expo": {
    "name": "App Name",
    "slug": "App-Name",
    "version": "2.0.2",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true,
      "config": {
        "googleMobileAdsAppId": "Ca-app-pub-xxxxx"
      },
      "bundleIdentifier": "com.xxxxxx",
      "buildNumber": "2.0.2"
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/adaptive-icon.png",
        "backgroundColor": "#FFFFFF"
      },
      "config": {
        "googleMobileAdsAppId": "Ca-app-pub-xxxx"
      },
      "package": "com.xxxxxx",
      "versionCode": 6,
      "permissions":[]
    },
    "web": {
      "favicon": "./assets/favicon.png"
    }
  }
}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文