Expo:无效的sdkVersion"32.0.0" [英] Expo : Invalid sdkVersion "32.0.0"

查看:40
本文介绍了Expo:无效的sdkVersion"32.0.0"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试根据安装指南使用expo配置运行react-native应用程序时出现此错误吗?

while trying to running react-native app according to installation guide using expo configuration i caught this error ?

错误:无效的sdkVersion.有效选项为10.0.0、11.0.0、12.0.0,13.0.0、14.0.0、15.0.0、16.0.0、17.0.0、18.0.0、19.0.0、20.0.0、21.0.0、22.0.0、23.0.0、24.0.0、25.0.0,26.0.0,27.0.0,28.0.0,29.0.0,30.0.0,31.0.0,7.0.0,8.0.0,9.0.0

Error: Invalid sdkVersion. Valid options are 10.0.0, 11.0.0, 12.0.0, 13.0.0, 14.0.0, 15.0.0, 16.0.0, 17.0.0, 18.0.0, 19.0.0, 20.0.0, 21.0.0, 22.0.0, 23.0.0, 24.0.0, 25.0.0, 26.0.0, 27.0.0, 28.0.0, 29.0.0, 30.0.0, 31.0.0, 7.0.0, 8.0.0, 9.0.0

这是我在app.json中的博览会配置:

this is my expo config in app.json :

博览会":{"name":"expo_demoproject2","slug":"expo_demoproject2","privacy":"public","sdkVersion":"32.0.0",平台":["ios",安卓"]

"expo": { "name": "expo_demoproject2", "slug": "expo_demoproject2", "privacy": "public", "sdkVersion": "32.0.0", "platforms": [ "ios", "android" ]

我的开发环境:

node -v:10.15.3 ||npm -v:6.4.1 ||npm ls expo:expo@32.0.6 ||纱列出react-native:V0.57.1​​

node -v : 10.15.3 || npm -v : 6.4.1 || npm ls expo : expo@32.0.6 || yarn list react-native :V0.57.1

推荐答案

类似于堆栈跟踪的相关部分如下:

Looks like the relevant part of your stack trace is the following:

错误:无效的sdkVersion

Error: Invalid sdkVersion

然后它告诉您 Expo 支持 SdkVersion :10到31(含),但在您的 app.json 中文件您正在尝试使用版本32 .

Then it tells you Expo supports SdkVersion: 10 through 31 inclusive, but within your app.json file you're trying to use version 32.

"sdkVersion": "32.0.0", "platforms": [ "ios", "android" ]

也许您可以尝试将该版本降低到31,然后查看是否可以解决您的问题:

Maybe you could try bumping that version down to 31 and seeing if that resolves your issue:

"sdkVersion": "31.0.0", "platforms": [ "ios", "android" ]

希望有帮助!

这篇关于Expo:无效的sdkVersion"32.0.0"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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