项目没有设定目标。编辑项目属性来设立一个项目、属性、编辑、目标

2023-09-13 00:04:04 作者:百事小甜饼

当我导入一个新的现有项目到Eclipse中,我得到试图作为一个Android项目执行时出现以下错误信息:

When I import a new existing project into Eclipse, I get the following error message when attempting to execute as an Android project:

项目没有设定目标。编辑   项目属性设置一个

Project has no target set. Edit the project properties to set one

任何帮助是AP preciated。

Any help is appreciated.

推荐答案

使用eclipse朱诺,并没有这样的菜单, 项目»属性»Java构建路径的任何地方。

Using eclipse Juno, and there is no such menu as Project » Properties » Java Build Path anywhere.

最近的菜单项是窗口 - > preferences->机器人但在该菜单是不可能以除去任何条目

Closest menu entry is Window->preferences->android but in that menu it is not possible to remove any entries.

我的解决方案现在是与具有完全相同的名称作为原始项目文件,然后手动复制并粘贴code创建另一个项目。

My solution now is to create another project with files having the exact same name as the original project and then manually copy and paste the code.