31.0.0 is not a valid SDK Version. Option are 26.0.0 Unversioned

31.0.0 is not a valid sdk version expo
37.0.0 is not a valid sdk version expo
your project is in sdk version >= 33.0.0, but the expo package version seems to be older.
update expo-cli
30.0 0 is deprecated please update expo sdk version
cannot determine which native sdk version your project uses because the module expo is not installed
the author should update their experience to a newer expo sdk version
expo sdk version error

I can no longer run my app after updating expo version to 31.0.0. I needed this upgrade to do due iOS version 12 support. Thou after trying to build the Android app it is no longer working.

my package.json looks as below:

{
  "name": "myapp",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "react-native-scripts": "1.13.1",
    "jest-expo": "^31.0.0",
    "react-test-renderer": "16.3.0-alpha.1"
  },
  "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
  "scripts": {
    "start": "react-native-scripts start",
    "eject": "react-native-scripts eject",
    "android": "react-native-scripts android",
    "ios": "react-native-scripts ios",
    "test": "jest"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "axios": "^0.18.0",
    "expo": "^31.0.4",
    "react": "16.5.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-31.0.1.tar.gz",
    "react-native-image-slider": "^2.0.3",
    "react-native-onesignal": "^3.1.4",
    "react-native-progress": "^3.4.0",
    "react-native-render-html": "^3.9.3",
    "react-navigation": "^1.5.11"
  }
}

app.json looks like:

{
  "expo": {
    "sdkVersion": "31.0.0",
    "name": "myapp",
    "slug": "myapp",
    "version": "0.1.1",
    "isDetached": true,
    "detach": {
      "scheme": "expe6b74e69f7904f4b8961fc359e0dc1ce",
      "androidExpoViewUrl": "https://s3.amazonaws.com/exp-exponent-view-code/android-v2.4.0-sdk26.0.0-e63d9209-070c-4118-b06b-c60e82da0b66.tar.gz"
    },
    "android": {
      "package": "com.myapp"
    }
  }
}

Android build.gradle app looks like this.:

android {
  compileSdkVersion 27
  buildToolsVersion '26.0.1'

  defaultConfig {
    applicationId 'com.ferrometal12'
    targetSdkVersion 27
    versionCode 1
    versionName '0.1.1'
    ndk {
      abiFilters 'armeabi-v7a', 'x86'
    }
    multiDexEnabled true
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    // Deprecated. Used by net.openid:appauth
    manifestPlaceholders = [
      'appAuthRedirectScheme': 'host.exp.exponent'
    ]
  }

Any idea why this is not working on Android anymore?

NOte: before i had expo 26.0.0 I also had targetSdkVersion to 26, after updating expo I also updated targetSdkVersion to 27

UPDATE: This error occurs on emulator, I havent yet tried on real device, but I have the feeling that the same would be on real device too.

You have to uninstall and then install the Expo on your Android device.

31.0.0 is not a valid SDK Version. Options are 32.0.0 UNVERSIONED, 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  Just dowloaded expo and get in the expo app a "35.0.0 is not a valid SDK version. Options are 34.0.0, 31.0.0, 32.0.0, 33.0.0, UNVERSIONED". I checked app.json and package.json and they match with the expo SDK walkthrough.

Updated mobile expo app from play-store in android. It worked for me.

Not valid sdk version after upgrading Android Expo app ( · Issue , Not valid sdk version after upgrading Android Expo app ( #3112 Options are 34.0.0, 31.0.0, 32.0.0, 33.0.0, UNVERSIONED". .expo.io/expo-sdk-v25-0-0-is-​now-available-714d10a8c3f7"},"26.0.0":{"androidExpoViewUrl":"  Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. Learn more 36.0.0 is not valid sdk version. options are 43.0.0,35.0.0,33.0.0, unversioned

see the upgrade walk-trough ...

{
    "react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz",
    "expo": "^31.0.0",
    "react": "16.5.0"
}

that sdkVersion which you've changed, most likely is the Android SDK version and should be:

"sdkVersion": "26.0.0"

the current maximum would be 28.0.0, but when it asks for 26.0.0, this should possibly be used.

20.0.0 is not a valid SDK version on Android only. · Issue #568 , After updating to SDK 20 and opening my app in Expo/Android, I receive the following error: Uncaught Error: 20.0.0 is not a valid SDK version. Options are 19.0.0, 18.0.0, 17.0.0, 16.0.0, 15.0.0, 14.0.0, 13.0.0, UNVERSIONED. Time: 7:38:​32 Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. Learn more How to solve this error, Uncaught Error: 36.0.0 is not a valid SDK version.

My app is detached / ejected and I am using ExpoKit. The following configuration worked for me:

in package.json

"expo": "^31.0.6",
"expokit": "31.0.2",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-31.0.1.tar.gz",

in app.json

"sdkVersion": "31.0.0"

and seeing the upgrade walk-through

31.0.0 is not a valid SDK Version. Option are 26.0.0 Unversioned, I can no longer run my app after updating expo version to 31.0.0. I needed this upgrade to do due iOS version 12 support. Thou after trying to  I found that npm start, makes the expo checks for sdk version and tries to refresh the cache using "35.202.142.166:443" server. which normally is not accessible from my internet. could be a restriction from local Internet ISP or US sanctions. anyway I could by pass it by using proxychains

This step is for ejected expo projects:

If you have run expo update 35.0.0 or other version and it did not solve the error, and if you had ejected your expo project...

Check if you have the right detach properties in your app.json. Note the sdk number on the URL for both iosExpoViewURL and androidExpoViewURL keys.

"detach": {
  "iosExpoViewUrl": "https://s3.amazonaws.com/exp-exponent-view-code/ios-v2.13.0-sdk35.0.0-a30ebc9b-3db4-42f4-b677-e468076baf18.tar.gz",
  "androidExpoViewUrl": "https://s3.amazonaws.com/exp-exponent-view-code/android-v2.13.0-sdk35.0.0-b816b7af-88da-4ca9-87a5-7438f0c21b6e.tar.gz"
}

27.0.0 is not a valid SDK version - Help: Expo SDK, error says: 27.0.0 is not a valid SDK version. options are 31.0.0 , 32.0.0 , 33.0.0, unversioned; how can I resolve this error? what should I  Hi, After i update to SDK 31.0.6, it's showing me: Assets are load after the below warnings are completely shown after update sdk version to 31.0.0 Require cycles are allowed, but can result in uninitialized values.

Tavern on the Meta, 31.0.0 is not a valid SDK Version. Options are 32.0.0 UNVERSIONED - reactjs. yarn --version: 1.5.1; watchman version: ERROR: (it's not a command) Also specify: Operating system: Windows 10 PRO; Phone& version: Motorola G4 Play - Android: 6.0.1; 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

31.0.0 is not a valid SDK Version. Option are 26.0.0 Unversioned. I can no longer run my app after updating expo version to 31.0.0. I needed this upgrade to do  @avinash-pnv It was the version but not the one at package.json I faced the same issue today with version 31.0.2 and the mobile app needed version 32.0.0 so I referred to the official website here and as they mentioned I updated the sdkVersion at app.json file and it's working now.

-1. A: 31.0.0 is not a valid SDK Version. Option are 26.0.0 Unversioned. Daggie Blanqx I experienced this problem today ; my Expo Android app  cannot update android sdk to version 26.0.0 windows 10.0 visual studio 2017 version 15.6 Setup loischrycolitebotwe reported Mar 23, 2018 at 10:06 AM

Comments
  • I have exactly the same problem. Do you find how to fix it?
  • I see that you have different sdk versions in package.json and app.json
  • I couldnt find any solution yet, how about you?
  • @Mizlul just added an answer.
  • @Mizlul I just update the sdk of app.json :) And now it works
  • i dont have expo installed on my android device at all actually!
  • Fixed the issue.
  • Just update Expo app it will worked.
  • @Mizlul when we choose 'Run on Android Device/emulator', expo first install the 'Expo' App on Emulator and then execute the app. It occurs when Expo-CLI and Expo App is updated. You just need to uninstall Expo App from Emulator and run the project (npm start), it will install the updated version of Expo App on your Emulator. Same is the case of Android phone, you have to Update Expo App on your phone
  • i will give a try into this config
  • im getting mismatch javascrip version vs react native
  • If you are using expokit, make sure to have the latest version of expokit in your package.json as well.