Couldn't start project on Android: The system cannot find the path specified

I can’t run my project in Android emulator using Android studio.
error message: Couldn’t start project on Android: The system cannot find the path specified

Expo CLI 3.16.1 environment info:
System:
OS: Windows 10 10.0.18362
Binaries:
Node: 12.16.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.4 - C:\Users\Pc\AppData\Roaming\npm\yarn.CMD
npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.6.0.0 AI-192.7142.36.36.6241897
npmPackages:
expo: ~36.0.0 => 36.0.2
react: ~16.9.0 => 16.9.0
react-native: https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz => 0.61.4

1 Like

Having the same issue (sdk 37). Did you resolve it somehow?

I checked the expo-cli code to see what’s happening. Adb.exe is being located in this method in @expo/xdl project.

function whichADB() {
  if (process.env.ANDROID_HOME) {
    return `${process.env.ANDROID_HOME}/platform-tools/adb`;
  }
  return 'adb';
}

As you can see the ANDROID_HOME variable must point to your SDK or be not set. But in this case adb.exe location must be set in PATH.
Newer ANDROID_SDK_ROOT is completely ignored (see. https://developer.android.com/studio/command-line/variables).

I managed to solved the problem.
check your ANDROID_HOME variable in advance system setting. It must point to your SDK C:\Users%yourPC%\AppData\Local\Android\Sdk

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.