Create-react-native-app: Expo says invalid SDK version

Created on 5 Mar 2018  路  7Comments  路  Source: expo/create-react-native-app

Description

When you just make a fresh new app, Expo throws an error saying than the SDK version 18.0.0 is invalid.

Expected Behavior

The app should start running on the device with the Expo client.

Observed Behavior

The APP is compiled and it's sended to the device but it won't load.

Uncaught Error: 18.0.0 s not a valid SDK version.
Options are 25.0.0, 24.0.0, 23.0.0, 22.0.0, 21.0.0, 20.0.0, 19.0.0, UNVERSIONED.

Environment

Also specify:

  1. Operating system: Windows 10 PRO
  2. Phone& version: Motorola G4 Play - Android: 6.0.1
  3. Expo Apk version: 2.3.0

Reproducible Demo

create-react-native-app my-apk
cd my-apk
yarn start
# Then press a to run it on my phone connected to the USB, using the QR code also fails

The expo client starts to load the app, but then it shows that error.

moving-to-expo-cli

Most helpful comment

Update to the latest version of Expo

All 7 comments

what is in your app.json?

{
  "expo": {
    "sdkVersion": "27.0.0"
  }
}

I get this error intermittently as well, i had an app running fine the other day and now i'm trying to run it again and it's showing that error. I'm at sdkVersion: 25.0.0

EDIT: Just found a fix, once i opened Expo XDE before i ran the command react-native run-ios then it worked fine and the simulator downloaded the new bundle.

Using Install iOS Simulator App from Expo XDE menu fixed it !

how can i open Expo XDE ?? @joshbedo

I think this is because the Expo app needs updating. After seeing this issue, I updated the Expo app on my Android device and everything ran perfectly.

Update to the latest version of Expo

Was this page helpful?
0 / 5 - 0 ratings