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
I got this error - the solution was to close the project and open it again.
Assuming:
On Android Studio 3.1.2
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 :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.