Android studio SDK location not found error on mapforge

113 Views Asked by At

I am trying to run the mapsforge-sample-android project but it gives me this:

SDK location not found. Define a location by setting the ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local.properties file.
Set sdk.dir in local.properties and sync project
Affected Modules: mapsforge-map-android, mapsforge-poi-android, mapsforge-samples-android, seamap, sqlite-android, test

I already define the environment variable and set the sdk.dir.It gives this error only to this project.

1

There are 1 best solutions below

0
On

For MacOS enter this command to the terminal

export ANDROID_SDK_ROOT=/Users/USER_NAME/Library/Android/sdk

Where USER_NAME is your user name on the mac