导入摇篮工程,机器人错误 [英] Importing gradle project, android error

查看:148
本文介绍了导入摇篮工程,机器人错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想导入libgdx项目(台式机,iOS和Android)日食在我的Mac,我有我的本地git仓库。

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.

当我尝试导入我的项目偏食(进口>>摇篮>>摇篮项目,然后添加我的根文件夹整个libgdx项目),我尝试创建模型,但后来我得到一个错误说

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"

我已经把我的ANDROID_HOME与

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.

该项目在我的Windows计算机(一切正常)在最初创建和使用Git的也有它在我的Mac的IOS的东西。

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.

我自己也尝试导入它作为一个本地git仓库(进口>> >>的Git项目从混帐>>现有的本地存储库,添加的路径到项目)。当我再选择为导入现有项目向导为项目导入它仍然没有找到。而当我导入为使用New Project向导和导入为一般项目它不工作,我不能运行我的项目(​​台式机,iOS和Android),有时我甚至不得到我的项目文件在月食。

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:目录:

-SpeedRun
--SpeedRun-android
--SpeedRun-desktop
--SpeedRun-ios

- 竞速破关芯

--SpeedRun-core

推荐答案

添加文件 local.properties 到项目的根文件夹。在那里,你应该写你的Andr​​oid SDK的位置是这样的:

Add file local.properties to your project root folder. There you should write location of your Android SDK like this:

sdk.dir=/Users/ab/Android/adt-bundle-mac-x86_64-20130917/sdk

这篇关于导入摇篮工程,机器人错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆