I am in the process of running a tutorial on how Libgdx works with eclipse on my MAC.
I am currently creating one example project using gradle in eclipse so that I can go through tutorials and learn a little more. When I import and create a sample code project (I use MAC), I get the following error message:
"SDK location not found. Locate using sdk.dir in local.properties file or with ANDROID_HOME environment variable."
In an attempt to solve this problem, I tried and checked the following:
1) Installed the latest version of JDK and installed JAVA_HOME - confirmed the existence by repeating the variable from the terminal.
2) The latest and other versions of the SDK and plugins for Android and the ANDROID_HOME settings have been installed. - Confirmed by checking Android Studio SDK location and repeating $ ANDROID_HOME
3) I also found this thread, and the proposed solution was to update local.properties with sdk.dir, which I also tried and I still get the same error:
Gradle, Android and location SDK ANDROID_HOME
4) I set the eclipse android settings to make sure it looks at ANDROID_HOME and it can see various SDK folders.
I also made several attempts to add -stacktrace options through Android studio, but didn't seem to give the result in eclipse.
Now I'm going to create a project through the command line outside of the eclipse and see if this works. Has anyone encountered this problem before?
Phill
android eclipse build.gradle gradle libgdx
Phill ash
source share