Solution for
SDK location not found. Define location with sdk.dir in the local.properties file or with ANDROID_HOME environment variable. See error log for details.
, eclipse error is very simple. Just follow the next steps:
- Find and copy the route of your SDK root installation. For example: /home/ernesto/libGDX/sdk-android
- Now go to the main folder of your Gradle project and find the local.properties file.
- If there’s no such file, create it and write inside it the next line (replacing bold phrase with your SDK route): sdk.dir=/home/ernesto/libGDX/sdk-android Save it and try to import again.
- If you found the local.properties file, open it and add (or replace) the next line (with your SDK route instead of the bold phrase): sdk.dir=/home/ernesto/libGDX/sdk-android Save the file and back in eclipse try to import your project again.
That’s all, I invite you to tell us if you fixed it or if you found a new problem.