android eclipse gradle project,Importing gradle project, android error

I am trying to import a libgdx project (desktop, ios and android) to eclipse on my mac, which I have in my local git repository.

When I try to import my project to eclipse ( Import >> Gradle >> Gradle Project, and then add my Root Folder for the whole libgdx project), I try to "Build Model", but then I get an error saying:

"SDK location not Found. Define location with sdk.dir in the local.properties file or with and ANDROID_HOME environment variable"

I have already set my ANDROID_HOME with

export ANDROID_HOME=/Development/Tools/android-sdk-mac

export PATH=$PATH:$ANDROID_HOME/bin

but I still get the same error and it doesn't work.

The project was originally created on my windows computer (where everything is working fine) and used git to also have it on my mac for ios stuff.

I have also tried importing it as a local git repo ( Import >> Git >> Projects from Git >> Existing local repository, added the path to the project). When I then choose the wizard for project import as "Import existing projects" it finds none. And when I import as "Use the New Project wizard" and "Import as general project" it doesn't work and I can't run my projects (desktop, ios and android) and sometimes I don't even get my project files up in eclipse.

What am I doing wrong and how can I fix this?

PS: Directory:

-SpeedRun

--SpeedRun-android

--SpeedRun-desktop

--SpeedRun-ios

--SpeedRun-core

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值