My app was working till today but now it looks like something happened to version 18 of Expo.
I got this error:
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.
I then:
yarn cache clean
rm -rf node_modules/
and I'm still getting the same error.
What do I need to do to get Simulator to recognize that I am using the correct version of Expo?
Current environment:
Thanks to @PritishVaidya for helping me figure this out.
The problem was simply that I was missing "sdkVersion": "20.0.0"
from my app.json
. The use of this is lined out in the Expo Docs .
For example:
{
"expo": {
"name": "My app",
"slug": "my-app",
"sdkVersion": "20.0.0",
"privacy": "public"
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.