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

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

问题描述

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

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 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"
  }
}

我正在使用Huawei 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?

谢谢.

推荐答案

Expo应用程序的当前版本仅支持SDK 33+

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

https://blog.expo.io/expo -sdk-35-is-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.在将来的版本中,我们将在博览会版本中删除对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天全站免登陆