Libgdx Grable project import error on the Mac OS X 10.9

The Eclipse 4.3 for mac os x said:
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

But, I have written ANDROID_HOME environment variable in .bash_profile of the Mac OS X 10.9,
and also ANDROID_SDK.

SOLVED:
put the local.properties file in your root of grable project.

local.properties
---------------------------------------------------------------------------------
# Location of the Android SDK. This is only used by Gradle.
sdk.dir= android your sdk path
---------------------------------------------------------------------------------

Note:The  local.properties is not included in the repository, so it is written in .gitignored.

P.S.
It is to be noted that only set the environment variable of ANDROID_HOME in Ubuntu14.04LTS, is working well.
P.S.
Also, you need the local.propertoes in Windows. You must use / for path. It likes linux path.


コメント

このブログの人気の投稿

日本でコンピュータサイエンスを学ぶ難しさ

UML tool Dia