Java Eclipse->File->New-Project 中没有 Android 项目类型
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2999285/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
No Android project type in Eclipse->File->New-Project
提问by Rubberman
I am running CentOS 5.5 x86_64 with JDK 1.6, Eclipse Galileo, and the 0.9.7 ADT is installed; however, after installation, the Android project type is not available. 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?
我正在使用 JDK 1.6、Eclipse Galileo 运行 CentOS 5.5 x86_64,并且安装了 0.9.7 ADT;但是,安装后,Android项目类型不可用。我已经检查了已安装的软件包列表并已安装。有人遇到过这个问题吗?可能是因为我使用了系统上安装的 64 位 java VM?
回答by Primal Pappachan
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. But you can get it by File -> New -> Project .. and choose the android project from the options displayed.
在极少数情况下,即使执行此步骤后,Android 项目选项也不会显示在文件 -> 新建中。但是您可以通过 File -> New -> Project .. 获取它,然后从显示的选项中选择 android 项目。
回答by Rubberman
Ok. I reinstalled eclipse and android. I think the problem was that I hadn't unpacked the android tools first. The plugin was installed, but it had nothing to talk to! Anyway, all the android related stuff now shows up in Eclipse.
好的。我重新安装了eclipse和android。我认为问题是我没有先解压android工具。该插件已安装,但它没有什么可谈的!无论如何,所有与 android 相关的东西现在都显示在 Eclipse 中。
回答by steveha
Using Windows 7, 64-bit edition, with the latest Eclipse (Indigo) and the latest ADT plugin, I had the exact same problem. No Android project type, no Android in Windows/Preferences.
使用 Windows 7、64 位版本、最新的 Eclipse (Indigo) 和最新的 ADT 插件,我遇到了完全相同的问题。没有 Android 项目类型,Windows/Preferences 中没有 Android。
Like @Rubberman I solved the problem by totally re-installing Eclipse. Eclipse doesn't seem to use the standard Add/Remove Program stuff in Windows; I just deleted the Eclipse install directories and my Eclipse workspace directory, re-installed Eclipse, and re-installed the ADT plugin.
像@Rubberman 一样,我通过完全重新安装 Eclipse 解决了这个问题。Eclipse 似乎没有在 Windows 中使用标准的添加/删除程序;我刚刚删除了 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. 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."
我本来希望删除插件并重新安装而不删除我的整个 Eclipse 安装,但我想不出办法做到这一点。我没有看到任何删除插件的方法,当我尝试选择 ADT 进行安装时,Eclipse 给了我一个错误,说“我无法安装它,因为它已经安装了。”
回答by Rekha
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..
我想分享一下,我们可以卸载插件而无需重新安装 eclipps ..只需转到“已安装的应用程序”链接并选择所有与 android 相关的选项,然后只需单击卸载按钮..现在您可以添加新的 android sdk 到你的 eclips ..我试过了,它有效..
Hope, I helped aomeone..:-)
希望,我帮助了某人..:-)
回答by Androrider
You have to install the Eclipse plugin called ADT.
您必须安装名为 ADT 的 Eclipse 插件。
回答by Smellymoo
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:
- GEF from http://download.eclipse.org/tools/gef/updates/releases
- WST Server Adapters from http://download.eclipse.org/releases/galileo/(modify for your release)
- 来自http://download.eclipse.org/tools/gef/updates/releases 的GEF
- 来自http://download.eclipse.org/releases/galileo/ 的WST 服务器适配器(针对您的版本进行修改)
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
- sonalsantan.blogspot.com/2010/10/eclipse-adt-plugin-on-ubuntu-1010-after.html
- ubuntuforums.org/showthread.php?t=1595684
- sonalsantan.blogspot.com/2010/10/eclipse-adt-plugin-on-ubuntu-1010-after.html
回答by minimalistix
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 > 重置透视图。
Hope this is still helpful.
希望这仍然有帮助。