ADT 插件和 Eclipse 3.5

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

ADT plugin and Eclipse 3.5

androideclipseadt

提问by Marat Faskhiev

I installed ADT plugin to Eclipse 3.5. But at WindowPreferencesAndroid node is not shown.

我将 ADT 插件安装到 Eclipse 3.5。但在WindowPreferencesAndroid 节点未显示。

采纳答案by Marat Faskhiev

Hallelujah. I removed ADT plugin, removed eclipse folder. Also I removed all mentions of eclipse from file system (several folders from user folder). Installed again. And it began work.

哈利路亚。我删除了 ADT 插件,删除了 eclipse 文件夹。此外,我从文件系统(用户文件夹中的几个文件夹)中删除了所有提到的 eclipse。再次安装。它开始工作。

回答by Melinda Green

If you have the Subclipse plug-in also installed, then that could be keeping the ADT plug-in from working. They just don't seem to play well together. I created a second Eclipse installation for my Android work with ADT but without Subclipse. I use the other one for projects using Subclipse but not Android. Not ideal but good enough for the moment.

如果您还安装了 Subclipse 插件,那么这可能会使 ADT 插件无法工作。他们似乎不能很好地一起玩。我使用 ADT 但没有 Subclipse 为我的 Android 工作创建了第二个 Eclipse 安装。我将另一个用于使用 Subclipse 而不是 Android 的项目。不理想,但目前足够好。

回答by VonC

How did you install android?

你是怎么安装安卓的?

Did you use the p2 'Install new software' as in:

您是否使用了 p2“安装新软件”,如下所示:

New update site

新的更新站点

like this tutorial?

喜欢这个教程吗?

See also this manual page, where you will see the update site address is the same, but the process depends on your eclipse version (for eclipse Galileo 3.5.x, the p2 mechanism is recommended)

另见这个手册页,在那里你会看到更新站点地址是一样的,但过程取决于你的eclipse版本(对于eclipse Galileo 3.5.x,建议使用p2机制)



A full reinstall of eclipse is better when in doubt (you do not even need to touch to your previous install: just unzip a new eclipse.zip somewhere): you can even reference your previous workspace (and plugins, if you have uncompressed them in a dedicated directory).
For those references, see my eclipse.inifor more.
(Note: there is no real full installation of eclipse, except for removing its directory)

如果有疑问,完全重新安装 eclipse 会更好(您甚至不需要接触以前的安装:只需在某处解压缩一个新的 eclipse.zip):您甚至可以引用您以前的工作区(和插件,如果您已将它们解压缩到专用目录)。
对于这些参考资料,请参阅我的 eclipse.ini以获取更多信息。
(注意:eclipse没有真正的完整安装,除了删除它的目录)

回答by Ben

Ok, I solved this slightly differently.

好的,我解决这个问题略有不同。

I am running Eclipse 3.5 under Windows 7 x64. I used the zipped version of Eclipse and originally decompressed it to c:\program files\eclipse

我在 Windows 7 x64 下运行 Eclipse 3.5。我使用了 Eclipse 的压缩版本,最初将其解压缩为c:\program files\eclipse

I found the only way I could get the ADT plug-in to work was to move the eclipse folder to a folder location with no spaces eg c:\eclipseand then run it as an administrator.

我发现让 ADT 插件工作的唯一方法是将 eclipse 文件夹移动到一个没有空格的文件夹位置,例如c:\eclipse,然后以管理员身份运行它。

After that I just re-installed the ADT plug-in and it works!

之后我只是重新安装了 ADT 插件,它就可以工作了!

回答by LegitimateKing0

The best answer is so simple, we've overlooked what eclipse is doing when we click "finish" after adding the plugin.

最好的答案就是这么简单,我们忽略了在添加插件后单击“完成”时 eclipse 正在做什么。

If you take a look at what eclipse is doing in the background before you install the plugin, it's actually installing the program, you'll see the loading bar updating, where ever you have dragged the loading bar to.

如果你在安装插件之前看看 eclipse 在后台做了什么,它实际上是在安装程序,你会看到加载栏更新,你将加载栏拖到哪里。

So you have to wait for eclipse to install it, it's actually doing something, we just didn't realize it, instead, we quit while eclipse was installing, it never got installed,thus it 'android' doesn't appear in the preferences.

所以你必须等待 eclipse 安装它,它实际上正在做一些事情,我们只是没有意识到,相反,我们在 eclipse 安装时退出,它从未安装过,因此它“android”没有出现在首选项中.

Give it a go!

搏一搏!

回答by Sandip Ashok Pol

If you are facing problem with Updating existing ADT or from Install New Software option of eclipse. Best way to do it

如果您在更新现有 ADT 或从 Eclipse 的安装新软件选项中遇到问题。最好的方法

1.Uninstall ADT from eclipse

1.从eclipse卸载ADT

2.Download ADT Plugin zip file from http://developer.android.com

2.从http://developer.android.com下载ADT插件zip文件

3.Unzip file downloaded in Step 2 and go to plugins directory.

3.解压步骤2下载的文件,进入plugins目录。

4.Copy all the jar files from plugins directory to plugins directory of your eclipse.

4.将plugins目录下的所有jar文件复制到eclipse的plugins目录下。

5.Restart eclipse

5.重启eclipse

回答by programming newbie

Just going to confirm that I has this same problem as well. I would download the ADT but it would not appear in the Window tab for Eclipse (helios) classic. I basically just reinstalled the ADT and that worked fine.

只是要确认我也有同样的问题。我会下载 ADT,但它不会出现在 Eclipse (helios) classic 的“窗口”选项卡中。我基本上只是重新安装了 ADT,效果很好。

  1. In Eclipse I went to the help tab, then Install New Software.

  2. I clicked the "whats already installed" link on the right

  3. I then uninstalled all the android stuff

  4. Then I just reinstalled it again.

  1. 在 Eclipse 中,我转到帮助选项卡,然后安装新软件。

  2. 我点击了右边的“whats already installed”链接

  3. 然后我卸载了所有 android 的东西

  4. 然后我只是重新安装了它。

Before I restarted Eclipse I waited 2 minutes just in case some files were still installing

在我重新启动 Eclipse 之前,我等了 2 分钟,以防万一一些文件仍在安装

Then I closed Eclipse and opened it again and that seemed to do the trick^^

然后我关闭了 Eclipse 并再次打开它,这似乎成功了^^

回答by Knobbywheels

I encountered the same problem and was able to resolve it by simply removing the eclipse and android sub-folders from beneath my C:\user folder.

我遇到了同样的问题,并且能够通过简单地从我的 C:\user 文件夹下删除 eclipse 和 android 子文件夹来解决它。

I was able to leave the main Eclipse folder alone, but I did need to install the Android plugin again.

我可以不理会主 Eclipse 文件夹,但我确实需要再次安装 Android 插件。

回答by Rigved

I am having the same problem.

我有同样的问题。

I uninstalled the ADT by mistake. The ADT was functioning correctly before this point of time.

我错误地卸载了 ADT。在此之前,ADT 运行正常。

Now when I try to install it again, it installs correctly but it doesn't load up in Eclipse. What I mean is that I can see the ADT has been installed when I check the installed plug-ins section; but I cannot see the Android section under Preferences and neither can I see the Android SDK and AVD Manager button/option under Windows.

现在,当我再次尝试安装它时,它会正确安装,但不会在 Eclipse 中加载。我的意思是我在查看已安装插件部分可以看到已经安装了ADT;但我在首选项下看不到 Android 部分,也看不到 Windows 下的 Android SDK 和 AVD 管理器按钮/选项。

I am currently using Eclipse 3.5.2 on a Windows 7 x64 system and I do have Subclipse installed as well.

我目前在 Windows 7 x64 系统上使用 Eclipse 3.5.2,我也安装了 Subclipse。

Please advice.

请指教。



Ok. So I got it working by removing Eclipse completely (even the folder under Users). Then while installing everything again, I did not install the Subclipse plug-in and everything is working as it should. I already have a seperate software for managing subversion repositories, so this setup works for me.

好的。所以我通过完全删除 Eclipse(甚至是用户下的文件夹)来让它工作。然后在再次安装所有东西时,我没有安装 Subclipse 插件,一切都正常工作。我已经有一个单独的软件来管理 subversion 存储库,所以这个设置对我有用。