您请求的体验使用 Expo SDK v(null),但此 Expo Client 副本至少需要 v23.0.0 [英] The experience you requested uses Expo SDK v(null), but this copy of Expo Client requires at least v23.0.0

查看:8
本文介绍了您请求的体验使用 Expo SDK v(null),但此 Expo Client 副本至少需要 v23.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 iOS 模拟器上启动 Expo 时出现此错误.

I'm getting this error when launching Expo on my iOS simulator.

您要求的体验使用 Expo SDK v(null),但此 Expo Client 副本至少需要 v23.0.0.作者应该将他们的体验更新到更新的 Expo SDK 版本.

The experience you requested uses Expo SDK v(null), but this copy of Expo Client requires at least v23.0.0. The author should update their experience to a newer Expo SDK version.

我已经看到了这个答案 Expo not loading(React-Native) -- 空 Expo SDK 版本 但该解决方案对我不起作用.我的 app.json 中已经有了 sdkVersion:

I've seen this answer Expo not loading (React-Native) -- null Expo SDK version but the solution does not work for me. I already have the sdkVersion in my app.json:


  "expo": {
    "sdkVersion": "22.0.0"
  }

我尝试了 yarn upgrade --latest 但仍然没有运气.任何想法表示赞赏.我正在使用 expo-cli --version 1.1.0

I tried yarn upgrade --latest but still no luck. Any ideas are appreciated. I'm using expo-cli --version 1.1.0

推荐答案

答案是通过进行以下更改来更新 SDK.

The answer is updating the SDK by making the following changes.

  • 关闭 XDE 或您的 exp CLI 服务器
  • 在 app.json 中,将 sdkVersion 更改为27.0.0"
  • 在 package.json 中,更改以下依赖项:
    • react-native to "https://github.com/expo/react-native/archive/sdk-27.0.0.tar.gz"
    • 展示^27.0.0"
    • 响应(16.3.1" — 这个确切的版本)
    • react-navigation 到1.5.11"(如果您使用它,请务必仔细阅读发行说明)
    • jest-expo 到 "^27.0.0"(如果你使用它)
    • sentry-expo 没有从~1.7.0"更改(如果您使用它)

    来源:https://blog.expo.io/expo-sdk-v27-0-0-is-now-available-898bf1e5b0e4

    这篇关于您请求的体验使用 Expo SDK v(null),但此 Expo Client 副本至少需要 v23.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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