gpt4 book ai didi

android - 如何解决 React Native Expo 项目中的 Uncaught Error :29. 0.0

转载 作者:行者123 更新时间:2023-11-30 05:02:18 24 4
gpt4 key购买 nike

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

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 文件:

{
"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。我想知道的是,我该如何解决这个错误?

谢谢。

最佳答案

Expo app当前版本仅支持SDK 33+

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

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 更新为更新的版本,否则您将无法运行该应用。

关于android - 如何解决 React Native Expo 项目中的 Uncaught Error :29. 0.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58050486/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com