[Solution] Error in runnabble ‘Creating Gradle model’

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:

  1. Find and copy the route of your SDK root installation. For example: /home/ernesto/libGDX/sdk-android
  2. Now go to the main folder of your Gradle project and find the local.properties file.
    1. 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.
    2. 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.

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.