SDK doesn't exist

 

When you migrate a project from one computer to another be extra cautious. Recently I tried to import some projects from Windows to Mac, and every time I had the same frustrating error. The error doesn’t locate the SDK on Mac, therefore we need to point the location before re-building the project.

Learn how to fix the problem inside Android Studio.

Steps

  1. Open the project root directory
  2. Open the file local.properties , You will notice that the path is Windows based.
  3. Replace the following  sdk.dir=/Applications/Android Studio.app/sdk***
  4. Then Build–>Rebuild project
  5. Done

***make sure you know where your android studio directory is in my case it was /Applications/Android Studio.app/sdk