Desktop no head

在导入桌面的安卓项目到Eclipse中的时候,刚开始没有异常,编译工程运行后,工程名后出现“DeskTop no head”,工程里面的文件夹前面都出现“>”,经过试验,发现是因为Eclipse 有版本控制插件,解决方法:导入外部项目的时候,拷贝一份到workspace里面。下面是stackoverflow的原文:


Your Eclipse has a version control plugin installed (probably Subclipse, a client plugin for subversion, or perhaps another one).

"NO HEAD" I believe means that Eclipse/Subclipse can no longer find the latest copy of your project since you moved it outside of there. If you right-click on one of those icons, you should discover some context menu commands that are version control-related.

Normally in Eclipse, you try to do as much as possible within its graphical interface, otherwise it can get confused when you delete/move/rename files outside of it. In those cases where you haven't done that, you often have to right click within the Eclipse project explorer and select "Refresh". And in those cases where a version control system is involved, it can be a bit more complex, but it's also a good sign because that means subversion probably kept a backup copy of that project (should you ever decide to revert what you just did).

Also whenever you import a project into Eclipse, it's a good idea to make a copy of it into your workspace, otherwise it can get confusing when you have to delete a project. As you must have found out already, Eclipse can be annoying when you delete a project (without deleting from disk) and when you immediately try to recreate another project by the same name in the same workspace.

That's the main reason I got into the habit of copying the contents of a project whenever I do an import. That way, I don't have to remember if I did, or did not make a copy, and if I have ever have to delete a project to start afresh, I don't need to worry about deleting the original source of what I've imported (even if tick the checkbox to also delete from disk).

转自:http://stackoverflow.com/questions/15781577/what-is-meaning-of-no-head-in-eclipse-for-android-app
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值