Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

31.0.0 is not a valid SDK Version. Options are 32.0.0 UNVERSIONED

I am unable to run my app on my simulator as well as device.Earlier it was working.

I have tried every step mentioned in this blog

Official Blog for updation

My package.json is

{
"main": "node_modules/expo/AppEntry.js",
  "scripts": {
"android-windows": "react-native bundle --platform android --dev false --entry-file App.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res && react-native run-android",
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject",
"debugWindow": "start 'rndebugger://set-debugger-loc?host=localhost&port=8081'",
"debugLinux": "open 'rndebugger://set-debugger-loc?host=localhost&port=8081'"
 },

"dependencies": {
    "expo": "^31.0.4",
    "react": "16.5.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-31.0.1.tar.gz",
    "react-navigation": "^3.0.8"
  },
  "devDependencies": {
    "babel-preset-expo": "^5.0.0"
  },
  "private": true
}

And App.json is

{


 "expo": {
    "name": "AwesomeProject",
    "slug": "AwesomeProject",
    "privacy": "public",
    "sdkVersion": "31.0.0",
    "platforms": [
      "ios",
      "android"
    ],
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true
    }
  }
}

I have tried running npm install 2-3 times but nothing seems to work.

I can't understand why its been suggesting option 32.0.0 when there is no release notes for this option at this link. Upgrading Expo

like image 995
Himanshu Avatar asked Jan 06 '19 05:01

Himanshu


People also ask

How do I know what version of Expo SDK I have?

You can check your Node version by running the Node -v command on your terminal. Expo offers a command-line interface called Expo CLI. It is used to test the app while it's being developed either in iOS or Android.


1 Answers

This is a known issue https://github.com/expo/expo/issues/3112

It is due to the Expo application from the Play Store having a bug. If you are using v2.10.0 then you should upgrade to v2.10.1

https://github.com/expo/expo/issues/3112#issuecomment-451697372

Sorry guys for the trouble 😞 We've fixed this issue in v2.10.1 that was released just a few hours later so you should already have an update.

https://play.google.com/store/apps/details?id=host.exp.exponent&hl=en

WHAT'S NEW

Fix issues when loading experiences with SDK older than 32

like image 63
Andrew Avatar answered Oct 30 '22 06:10

Andrew