How to resolve Uncaught Error:29.0.0 in React Native Expo project(如何解决 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何解决 React Native Expo 项目中未捕获的错误:29.0.0
基础教程推荐
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01