如何解决 React Native Expo 项目中未捕获的错误:29.0.0 [英] How to resolve Uncaught Error:29.0.0 in React Native Expo project

查看:33
本文介绍了如何解决 React Native Expo 项目中未捕获的错误:29.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Expo 方法构建(不是由我)构建的 react-native 应用程序 的演示.安装依赖项并尝试运行应用程序后;我收到以下错误:

I am trying out a demo of a react-native application that was built (not by me) using Expo approach. After installing dependencies and trying to run the application; I get the error below:

未捕获的错误:29.0.0 不是有效的 SDK 版本.选项为 35.0.0 、 33.0.0、未版本化.16:56:55 致命错误.

Uncaught Error: 29.0.0 is not a valid SDK version. Options are 35.0.0 , 33.0.0, UNVERSIONED. 16:56:55 Fatal Error.

这是 package.json 文件:

Here is the package.json file:

{
  "name": "food-shop",
  "main": "node_modules/expo/AppEntry.js",
  "private": true,
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "eject": "expo eject"
  },
  "dependencies": {
    "expo": "^29.0.0",
    "expokit": "^1.5.0",
    "react": "16.3.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-29.0.0.tar.gz",
    "react-navigation": "^2.11.2"
  }
}

我使用的是华为 Y5 Lite,Android 8.1.0.我想知道的是,我该如何解决这个错误?

I am using Huawei Y5 Lite, Android 8.1.0. What I wish to know is,how can I resolve this error?

谢谢.

推荐答案

世博APP当前版本仅支持SDK 33+

The current version of the Expo app only supports SDK 33+

https://blog.expo.io/expo-sdk-35-is-now-available-beee0dfafbf4

我们通常会删除使用率较低的 SDK 版本,但在此版本中我们删除的版本比平时更多.SDK 33 是​​第一个包含 64 位支持的版本,为了让我们在 Google Play 上更新 Expo 客户端,我们包含的每个 SDK 版本都必须支持 64 位.此版本见证了 SDK 31 和 32 的生命周期结束.像往常一样,使用这些 SDK 版本构建的独立应用程序将继续工作;但是,SDK 31 和 32 项目将不再在最新版本的 Expo Client 中工作.此时,您仍然可以为 SDK 31 和 32 项目运行 expo build.但是请注意,由于 64 位要求,您必须升级到 33 或更高版本才能向 Google Play 提交更新的 APK.我们将在未来版本的 expo 版本中删除对 SDK 31 和 32 的支持.如果您仍需要测试运行 SDK 31 或 32 的项目,可以下载此 Android 客户端版本和此 iOS 客户端版本.

We routinely drop SDK versions that have low usage, but we’ve dropped more versions than usual with this release. SDK 33 was the first version that included 64-bit support, and in order for us to update the Expo client on Google Play, every SDK version we include must have 64-bit support. This release sees the end of life for SDKs 31 and 32. As usual, your standalone apps built with these SDK versions will continue to work; however, SDK 31 and 32 projects will no longer work within the latest version of Expo Client. At this time, you can still run expo build for SDK 31 and 32 projects. Note, however, that you must upgrade to 33 or later in order to submit an updated APK to Google Play due to the 64-bit requirement. We will remove support for SDKs 31 and 32 in expo build in a future release. If you still need to test a project running SDK 31 or 32, you can download this Android client version and this iOS client version.

除非您将 sdk 更新到较新的版本,否则您将无法运行该应用程序.

You won’t be able to run that app unless you update the sdk to a more recent one.

这篇关于如何解决 React Native Expo 项目中未捕获的错误:29.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆