APK errors

Expo SDK mismatch

Error text

The installed version of Expo Go is for SDK 51 but the project uses SDK 52.
Incompatible react-native version: expected 0.76.x, found 0.74.x

Cause

The project's SDK, Expo Go, or package versions do not match. Each SDK works only with a certain React Native version.

Step-by-step fix

  1. Look at the expo version in package.json: that is the SDK number.
  2. Run npx expo install --fix; packages move to versions that fit the SDK.
  3. Update Expo Go from the store, or use a development build.
  4. npx expo-doctor lists what remains.
  5. Clear the cache: npx expo start --clear.

Example commands

npx expo install expo@latest
npx expo install --fix
npx expo-doctor
npx expo start --clear

How to prevent it

Add packages with npx expo install, not npm install.

Author and license: Nibras Code