简体   繁体   English

Eclipse-> File-> New-Project中没有Android项目类型

[英]No Android project type in Eclipse->File->New-Project

I am running CentOS 5.5 x86_64 with JDK 1.6, Eclipse Galileo, and the 0.9.7 ADT is installed; 我使用JDK 1.6,Eclipse Galileo运行CentOS 5.5 x86_64,并安装了0.9.7 ADT; however, after installation, the Android project type is not available. 但是,安装后,Android项目类型不可用。 I have checked in the installed packages list and it is installed. 我已检入已安装的软件包列表并已安装。 Anybody encounter this problem before? 以前有人遇到过这个问题吗? Could it be due to my use of the 64-bit java VM that is installed on my system? 可能是因为我使用了我系统上安装的64位Java VM?

This usually happens when you dont select any android SDK in "Preferences > Android" You just have to reset the perspective in eclipse, Windows > Reset Perspective. 当您在“首选项> Android”中没有选择任何Android SDK时,通常会发生这种情况。您只需在eclipse,Windows> Reset Perspective中重置透视图。

Hope this is still helpful. 希望这仍然有用。

Hope you have already set the Android Preferences if not Window -> Preferences-> Android and browse to the android SDK folder. 希望您已经设置了Android首选项,如果不是Window - > Preferences-> Android并浏览到android SDK文件夹。

In rare cases even after doing this step, Android Project option doesn't show up in File -> New. 在极少数情况下,即使执行此步骤,Android项目选项也不会显示在文件 - >新建中。 But you can get it by File -> New -> Project .. and choose the android project from the options displayed. 但你可以通过File - > New - > Project ..来获取它,然后从显示的选项中选择android项目。

I Know its a very old post..but still it may help someone with same problem... 我知道这是一个非常古老的帖子..但它仍然可以帮助有同样问题的人......

I wanted to jst share that we can uninstall the plugins without the need of reinstalling eclipps..by simply going to 'already installed application' link and selecting all the android related options and simply clicking on uninstall button..Now you can add fresh android sdk to your ecllips..I have tried it and it works.. 我想jst分享我们可以卸载插件而无需重新安装eclipps ..只需转到“已安装的应用程序”链接并选择所有Android相关选项,只需单击卸载按钮..现在你可以添加新鲜的android sdk到你的ecllips ..我试过它,它的工作原理..

Hope, I helped aomeone..:-) 希望,我帮助过aoneone .. :-)

Ok. 好。 I reinstalled eclipse and android. 我重新安装了eclipse和android。 I think the problem was that I hadn't unpacked the android tools first. 我认为问题是我没有先解压缩android工具。 The plugin was installed, but it had nothing to talk to! 该插件已安装,但没有什么可说的! Anyway, all the android related stuff now shows up in Eclipse. 无论如何,所有与Android相关的东西现在都出现在Eclipse中。

Using Windows 7, 64-bit edition, with the latest Eclipse (Indigo) and the latest ADT plugin, I had the exact same problem. 使用Windows 7,64位版本,最新的Eclipse(Indigo)和最新的ADT插件,我遇到了完全相同的问题。 No Android project type, no Android in Windows/Preferences. 没有Android项目类型,Windows / Preferences中没有Android。

Like @Rubberman I solved the problem by totally re-installing Eclipse. 就像@Rubberman一样,我通过完全重新安装Eclipse解决了这个问题。 Eclipse doesn't seem to use the standard Add/Remove Program stuff in Windows; Eclipse似乎没有使用Windows中的标准添加/删除程序; I just deleted the Eclipse install directories and my Eclipse workspace directory, re-installed Eclipse, and re-installed the ADT plugin. 我刚刚删除了Eclipse安装目录和我的Eclipse工作区目录,重新安装了Eclipse,并重新安装了ADT插件。

I would have liked to have just removed the plugin and re-installed without deleting the whole of my Eclipse install, but I couldn't figure out a way to do that. 我本来希望刚删除插件并重新安装而不删除我的整个Eclipse安装,但我无法找到一种方法来做到这一点。 I don't see any way to remove a plugin, and when I tried to choose ADT for installation Eclipse gave me an error, saying "I can't install that because it is already installed." 我没有看到任何删除插件的方法,当我尝试选择ADT进行安装时,Eclipse给了我一个错误,说“我无法安装,因为它已经安装了”。

Ok, been looking for the answer to this for an hour, it's not well mentioned. 好的,一直在寻找这个问题的答案一个小时,它没有被提及。

if you are using linux then you need to add 2 more things to install ADT correctly: 如果你使用的是linux,那么你需要再添加2个东西才能正确安装ADT:

do it the same as the adt plugin install. 和adt插件安装一样。

maybe you need to uninstall then reinstall the adt plugin after? 也许你需要卸载然后重新安装adt插件?

sources: 来源:

  • ubuntuforums.org/showthread.php?t=1595684 ubuntuforums.org/showthread.php?t=1595684
  • sonalsantan.blogspot.com/2010/10/eclipse-adt-plugin-on-ubuntu-1010-after.html sonalsantan.blogspot.com/2010/10/eclipse-adt-plugin-on-ubuntu-1010-after.html

您必须安装名为ADT的Eclipse插件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Eclipse->文件->新建项目中没有可用的Android项目类型 - No Android project type available in Eclipse->File->New-Project 在Eclipse中,当我转到File-> New-Project时,没有Android项目 - In Eclipse, there is no Android Project when I go to File->New-Project 安装了 Eclipse 2020-06,但在 File->New Section 下没有得到 Maven 项目 - Installed Eclipse 2020-06, but didn't get Maven Project under File->New Section eclipse-“在项目浏览器中显示”选项不起作用 - eclipse- “show in project explorer” option is not working Eclipse- Dynamic Web Module 3.0 requires Java 1.6 or newer while creating new project 错误 - Eclipse- Dynamic Web Module 3.0 requires Java 1.6 or newer error while creating new project Eclipse->新的Android项目始终会编译Java 1.4 - Eclipse->New Android Projects always compile java 1.4 当我尝试从File-> New_> Maven Project创建新项目时,出现错误: - When I am trying to create new Project from File->New_>Maven Project, I obtain error: 如何在Eclipse中的“文件”>“新建”>“_____”菜单中添加“Android项目”? - How do I add “Android Project” to the File>New>_____ Menu in Eclipse? eclipse 中的 SWTBot-如何找到项目的弹出菜单(右键单击菜单) - SWTBot in eclipse- How to find a project's popup menu (right click menu) 带有ADT的Eclipse-无法创建新的Android项目 - Eclipse with ADT - Cannot Create New Android Project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM