当前位置:   article > 正文

android eclipse gradle project,Importing gradle project, android error

importing gradle project

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/277599
推荐阅读
相关标签
  

闽ICP备14008679号