无法将 android 项目导入 Eclipse
我一直在台式机上开发程序,现在想继续在笔记本电脑上开发程序。
我将项目文件夹(在工作区中)复制(通过 SFTP - 使用 filezilla)到笔记本电脑上的工作区。
当我打开eclipse时,它没有显示。
我正在为 android 1.5 开发。
我已经从桌面复制了 android SDK(均使用 32 位)并获取了 Eclipse 插件。我还将 Eclipse 指向了我尝试打开现有项目的 SDK
,但它不会显示任何要打开的项目。
如何打开我的项目?
编辑: “文件”=> “导入”=> “一般” => “将现有项目放入工作区”不起作用。该项目不被认可。
(来源:site-hosts.net)
I have been developing my program on my desktop, and now want to continue to work on my program on my laptop.
I copied (via SFTP - using filezilla) the folder of the project (in the workspace) to the workspace on my laptop.
When I open eclipse, it did not show up.
I am developing for android 1.5.
I have copied over the android SDK from my desktop (both using 32-bit) and got the plugin for Eclipse. I also pointed Eclipse to the SDK
I tried to open existing project, but it will not show any projects to open.
How do I open my project?
EDIT:
"File" => "Import" => "General" => "Existing Projects into workspace" does not work. THe project is not recognized.
(source: site-hosts.net)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在这种情况下,您当然可以打开 .project 文件(实际上只是一个普通的 xml 文件)并将 Android nature 作为子节点添加到 nature 标记中:
之后将您的项目重新导入到 eclipse 中。
右键单击项目>安卓工具>修复项目属性
亲切的问候
特里斯坦
In this case you could ofcourse just open the .project file (which is just a plain xml file actually) and add the Android nature as child node to the nature tag:
After that re-import your project into eclipse.
Right click the project > Android Tools > Fix projects properties
Kind Regards
Tristan
使用文件>> 导入...>> 将常规/现有项目放入工作区并按照提示进行操作。
Use File >> Import... >> General/Existing Projects into Workspace and follow the prompts.
我认为这可以通过以下步骤解决:-
1.剪切包含该项目的文件夹并将其粘贴到工作空间文件夹之外的任何文件夹中。
2.现在尝试通过浏览到粘贴项目的文件夹将项目导入到工作空间中。
这应该可以解决你的问题。我不确定为什么会这样,但我认为它必须与 eclipse 一起做一些事情,期望将项目导入到工作空间之外。
I think this can be solved by the following steps:-
1.Cut the folder which contains the project and paste it into any folder outside the work space folder.
2.Now try importing the project into work space by browsing to the folder where you pasted it into.
This should solve your problem.I am not sure why this works but i think it has got to do something with eclipse expecting the project to be imported to be outside the work space.