将现有工作区中的项目从ADT转换为Andmore [英] Convert project in existing workspace from ADT to Andmore

查看:170
本文介绍了将现有工作区中的项目从ADT转换为Andmore的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从Eclipse Luna更新到Eclipse Oxygen,并安装了Andmore。我有一堆用Eclipse Luna和ADT创建的项目工作区。

I have just updated from Eclipse Luna to Eclipse Oxygen and installed Andmore. I have a bunch of project workspaces which were created with Eclipse Luna and ADT.

Eclipse在导入时会自动将工作区升级到较新版本,但不会从ADT转换到Andmore(虽然共享许多相同的代码,但是是不同的插件)。

Eclipse automatically upgrades workspaces to the newer version on import, but it doesn’t convert from ADT to Andmore (which, although sharing much of the same code, is a different plugin).

有没有一种方法可以将现有的Eclipse工作区从ADT迁移到Andmore而无需是否必须删除并重新导入每个Android项目?

Is there a way I can migrate an existing Eclipse workspace from ADT to Andmore without having to delete and re-import every single Android project?

推荐答案

有一种官方方法,请参见这里。对于工作空间中的每个项目,都需要这样做(对于图书馆项目,如果有的话):

There is an official way, see here. This needs to be done for each project in the workspace (also for library projects, if any):


  • 右键单击该项目,然后选择配置>转换为Andmore项目(最后一个菜单项的措词可能略有不同)。

  • 在我的情况下,我必须重新启动Eclipse才能将其启动一切。

  • 您可能还需要清理项目。

  • Right-click the project, then select Configure > Convert to Andmore Project (wording of the last menu item may differ slightly).
  • In my case I had to restart Eclipse before it would pick up everything.
  • You may also need to clean your project.

如果有任何选项卡在打开特定于ADT的视图(包括所有ADT文件以及可能不是Java源文件的任何文件)的情况下,您将需要关闭并重新打开它们,因为它们仍然引用不再可用的ADT组件。关闭并重新打开它们会弹出相应的Andmore视图。

If you had any tabs with ADT-specific views open (which includes all ADT files and potentially anything which is not a Java source file), you will need to close and reopen them, as they still refer to ADT components which are no longer available. Closing and reopening them will bring up the corresponding Andmore view.

当我尝试构建应用程序时,我仍然收到错误消息,但这可能是无关的。 第一次构建失败并出现错误,但这是由于一个单独的,不相关的问题。

I still get an error message when I try to build the app, but that may be unrelated. The first build failed with an error but that was due to a separate, unrelated issue.

这篇关于将现有工作区中的项目从ADT转换为Andmore的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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