我的应用程序一直运行到今天,但现在看起来第 18 版 Expo 发生了一些事情。
我收到了这个错误:
The experience you requested uses Expo SDK v(null), but this copy of Expo Client requires at least v20.0.0. The author should update their experience to a newer Expo SDK version.
我然后:
yarn cache clean
rm -rf node_modules/
我仍然遇到同样的错误。
我需要做什么才能让模拟器识别我使用的是正确版本的 Expo?
当前环境:
请您参考如下方法:
感谢@PritishVaidya 帮助我解决这个问题。
问题只是我错过了"sdkVersion": "20.0.0"
来自我的app.json
. Expo Docs 中列出了它的使用。 .
例如:
{
"expo": {
"name": "My app",
"slug": "my-app",
"sdkVersion": "20.0.0",
"privacy": "public"
}
}