I'm trying to migrate my android projects from Eclipse to Android Studio v1.0.1 in MAC
If I create a new project everything works fine but if I import one of my projects from Eclipse I get the following error:
Error:A problem occurred configuring project ':MyProject'. SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
My local.properties file already has the correct path to the SDK (which I already had installed when I downloaded the ADT bundle for Eclipse)
I also defined ANDROID_HOME environment variable like the answer of this question suggest Setting ANDROID_HOME enviromental variable on Mac OS X
but the error remains. I think there might be something wrong exporting from Eclipse with Gradle or something like that but I really have no clue how to fix it.
Hope anyone can help. Thanks in advance