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.
- Open the project root directory
- Open the file local.properties , You will notice that the path is Windows based.
- Replace the following
- Then Build–>Rebuild project
***make sure you know where your android studio directory is in my case it was