eclipse 为什么 Android 没有出现在 Eclipses 的首选项中?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10310028/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 18:05:46  来源:igfitidea点击:

Why doesn't Android appear in Eclipses' preferences?

androideclipsedevelopment-environmenttoolkit

提问by A T

I've installed the Android Developer tools as per the official instructions.

我已经按照官方说明安装了 Android 开发者工具。

Installed apps

已安装的应用程序

Why doesn't the tab appear in Windows->Preferences, as they saidit should?

为什么选项卡没有出现在 中Windows->Preferences,正如他们所说的那样?

Eclipse preferences

Eclipse 首选项

采纳答案by Jean-Philippe Jodoin

This won't fix your issue directly, but I suggest your take a look at the MOTODEV STUDIO for Android. Essentially, it's a customized Eclipse IDE with all the Android tools preinstalled and many more of their own tools for app validation. I find their tools usefull, especially the code snippets and the app validator. I believe you will need to register to download, but it's a quick and free process and you can always use a temporary email service. Anyway, this should allow you to get up and running until you find your bug (even if I don't see why you'd switch back to plain eclipse).

这不会直接解决您的问题,但我建议您查看适用于 Android 的 MOTODEV STUDIO。从本质上讲,它是一个定制的 Eclipse IDE,其中预装了所有 Android 工具以及许多他们自己的应用验证工具。我发现他们的工具很有用,尤其是代码片段和应用验证器。我相信您需要注册才能下载,但这是一个快速且免费的过程,您可以随时使用临时电子邮件服务。无论如何,这应该允许您启动并运行,直到找到您的错误(即使我不明白您为什么要切换回纯日食)。

MOTODEV STUDIO for ANDROID

适用于 Android 的 MOTODEV 工作室

回答by Nikhil

Remove the plugin, then restart as follows:

删除插件,然后重启如下:

eclipse -clean

日食-清洁

Now try reinstalling the ADT from the online installation

现在尝试从在线安装中重新安装 ADT

OR

或者

Head over to Help -> Install New Software. Click on Available software sites. Delete the Android repo. Uncheck Indigo & Eclipse updates & recheck them. Now head back to Help -> Check for updates. Once done, add the Android repo again. Accept the license & you should be good to go.

转到“帮助”->“安装新软件”。单击可用的软件站点。删除 Android 存储库。取消选中 Indigo 和 Eclipse 更新并重新选中它们。现在返回帮助 -> 检查更新。完成后,再次添加 Android 存储库。接受许可证,您应该很高兴。

Happy Coding..

快乐编码..

回答by Craigy

Check your plugins directory, located in the folder you extracted the original eclipse zip file to.

检查您的插件目录,该目录位于您将原始 Eclipse zip 文件解压缩到的文件夹中。

For me it is located in

对我来说,它位于

eclipse-java-indigo-SR2-win32-x86_64\eclipse\plugins

and I see the following files related to the ADT plugin

我看到以下与 ADT 插件相关的文件

com.android.ide.eclipse.adt_18.0.0.v201203301601-306762.jar
com.android.ide.eclipse.ddms_18.0.0.v201203301601-306762.jar
com.android.ide.eclipse.hierarchyviewer_18.0.0.v201203301601-306762.jar
com.android.ide.eclipse.traceview_18.0.0.v201203301601-306762.jar
overlay.com.android.ide.eclipse.adt.overlay_18.0.0.v201203301601-306762.jar

Make sure you have files similar to these.

确保您有与这些类似的文件。

Now open a shell and run the following in your eclipse install directory

现在打开一个shell并在你的eclipse安装目录中运行以下命令

eclipse.exe -console

you should get the osgi(Open Services Gateway Initiative) console. Now you can see whether your bundles have unresolved dependencies and start them manually. So try

您应该获得osgi(开放服务网关计划)控制台。现在您可以查看您的包是否有未解决的依赖项并手动启动它们。所以试试

osgi> diag com.android.ide.eclipse.adt

and

osgi> start com.android.ide.eclipse.adt

and check the output.

并检查输出。

回答by ankita gahoi

Have you restarted eclipse after install of ADT plugin

安装 ADT 插件后,您是否重新启动了 eclipse

回答by jolivier

I see you are on Windows, I had the same problem and in my case I had to run Eclipse as administrator to install the plugin, so uninstall it, restart eclipse as administrator and reinstall it. You don't need afterward to run eclipse as administrator just to use the plugin, its only required for the installation.

我看到你在 Windows 上,我遇到了同样的问题,在我的情况下,我必须以管理员身份运行 Eclipse来安装插件,所以卸载它,以管理员身份重新启动 eclipse 并重新安装它。之后您无需以管理员身份运行 eclipse 即可使用该插件,它仅在安装时需要。

The root cause might be folders ownership problems, as quoted by others, when I had the same problem I tried setting folders ownership but I could not apply my permission changes so running as administrator eclipse was the easy way for me. If you are not allowed to run eclipse as administrator on your station then you should search on the ADT documentation which folder should be owned by the user running Eclipse.

根本原因可能是其他人引用的文件夹所有权问题,当我遇到同样的问题时,我尝试设置文件夹所有权,但无法应用我的权限更改,因此以管理员身份运行 eclipse 对我来说是一种简单的方法。如果不允许您在工作站上以管理员身份运行 eclipse,那么您应该在 ADT 文档中搜索运行 Eclipse 的用户应该拥有哪个文件夹。

回答by gutiory

Check the answers in this post:

检查这篇文章中的答案:

Maybe going to choose Help > Check for Updates or reinstalling ADT plugin again works.

也许要选择“帮助”>“检查更新”或重新安装 ADT 插件。

回答by heretolearn

There are chances that the plugin may not have been correctly installed. Try reinstalling the ADT. Or in the help menu check for the updates nad try installing through it. I hope it 'll solve your problem.

插件可能没有正确安装。尝试重新安装 ADT。或者在帮助菜单中检查更新并尝试通过它安装。我希望它能解决你的问题。

回答by Tech

Same problem here. I've solved it like these:

同样的问题在这里。我已经解决了这样的问题:

  • Start Eclipse, then select Help > Install New Software.
  • Click Add, in the top-right corner.
  • In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location: https://dl-ssl.google.com/android/eclipse/
  • Click OK.
  • If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
  • In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
  • In the next window, you'll see a list of the tools to be downloaded. Click Next. Read and accept the license agreements, then click Finish.
  • If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
  • When the installation completes, restart Eclipse.
  • 启动 Eclipse,然后选择帮助 > 安装新软件。
  • 单击右上角的添加。
  • 在出现的 Add Repository 对话框中,为 Name 输入“ADT Plugin”,为 Location 输入以下 URL:https: //dl-ssl.google.com/android/eclipse/
  • 单击确定。
  • 如果您在获取插件时遇到问题,请尝试在位置 URL 中使用“http”,而不是“https”(出于安全原因,首选 https)。
  • 在“可用软件”对话框中,选中“开发人员工具”旁边的复选框,然后单击“下一步”。
  • 在下一个窗口中,您将看到要下载的工具列表。点击下一步。阅读并接受许可协议,然后单击完成。
  • 如果您收到安全警告,提示无法确定软件的真实性或有效性,请单击“确定”。
  • 安装完成后,重新启动 Eclipse。

Followed from here

这里关注

回答by akkhatri

Which you are using eclipse id , i think you are not using proper id. For better reference visit below links

您使用的是 eclipse id ,我认为您没有使用正确的 id。如需更好的参考,请访问以下链接

Hello-world-example

你好世界的例子

Installing-adt

安装-adt