I'm trying to import a libGDX project into IntelliJ running OSX 10.9. When creating my own project it's not an issue specifying the path to the android sdk in the gdx-setup, but when importing one I keep getting the issue:
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
So thanks to the friendly people in the libGDX IRC it turned out to be relatively easy adding the local.properties file. The necessary content is just
This solves the problem and IntelliJ is now able to import the project. No further info on using environment variables.