4

When I try to run my app on emulator, this error pops up.

Android Studio 3 error: Local SDK path not set

I have tried syncing with gradle. My Sdk path is known and shows otherwise everywhere else in the studio

3
  • 1
    Please provide us the error you're getting. Commented Feb 10, 2018 at 13:10
  • 1
    provide the local.properties file please Commented Feb 10, 2018 at 13:12
  • I have the same problem. And the local.properties file is: sdk.dir=/Users/myname/Library/Android/sdk Commented Apr 24, 2018 at 14:16

2 Answers 2

8

I got this error - the solution was to close the project and open it again.

Assuming:

  • the sdk path in your File/SDK Location is correct
  • all other build issues have been solved.

On Android Studio 3.1.2

Sign up to request clarification or add additional context in comments.

Comments

0

I solved it, do following steps to solve:

1-Make sure in file "local.properties" sdk path set correctly: example:

sdk.dir=/Users/hamed{your own username}/Library/Android/sdk

if the sdk.dir shows the wrong sdk path change it to your correct path.

2- Build: Clean your project

3- Build: Rebuild

4-Close Android Studio and open it again

Error has gone :)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.