简体   繁体   中英

Android studio SDK location not found error on mapforge

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.

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

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM