Android Eclipse导入现有代码 [英] Android Eclipse Import Existing Code

查看:172
本文介绍了Android Eclipse导入现有代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在组织我的SV​​N代码,所以我可以从多个位置工作,没有问题,并可能添加更多的开发人员。问题是我无法轻松地将代码转换成新项目。我正在尝试从现有代码创建一个项目。

I am trying to organize my code for SVN so I can work from multiple locations without issue and potentially add more developers. The problem is that I can't get the code into a new project easily. I am trying to create a project from existing code.

一旦我选择了该文件夹,主要活动显示,但我永远不会使用它。我已经尝试删除所有的.project文件以及文件夹中的什么文件,但是这些东西一直是灰色的,我永远都不会得到它导入。

Once I select the folder, the "main activity" shows up, but I can never use it. I've tried deleting all the .project files and what not in the folder as well, but the thing is always greyed out and I can never get it to import.

为什么它变灰了?我需要做些什么才能导入?

Why is it greyed out? What do I need to do to get it to import?

- ADT Build v21.0.0-519525

-- ADT Build v21.0.0-519525

推荐答案

我玩了一大堆,发现它与工作空间中已经存在的另一个类似命名的活动是冲突的。错误消息至少选择一个项目覆盖了该消息。它会显得很快,然后切换到至少选择一个项目。

I played around with this a bunch and found out that it was conflicting with another similarly named activity that already existed in the workspace. The error message "Select at least one project" was covering up that message. It would appear very quickly and then switch to select at least one project.

为了解决这个问题,我从我的工作区中删除了所有的项目。我不知道是哪一个,因为我正在制作一个正在为不同公司进行版本化和品牌化的应用程序。

To get around this, I deleted all the projects from my workspace. I didn't know which one it was because I am making an app that is being versioned and branded for different companies.

这篇关于Android Eclipse导入现有代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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