简体   繁体   English

在Eclipse中找不到AVD或SDK管理器

[英]Can't find AVD or SDK manager in Eclipse

Seems like I'm having some problems after updating my android sdk tools and platform-tools using the sdk manager. 使用sdk管理器更新android sdk工具和平台工具后,似乎出现了一些问题。 The problem is that, after updating, I found that the avd or sdk options in the windows dropdown menu in eclipse are gone! 问题是,更新后,我发现Eclipse的Windows下拉菜单中的avd或sdk选项都不见了! And, I can't find any option to create an android project from file->new projects any more. 而且,我再也找不到从file-> new projects创建android项目的任何选项。

I tried removing the ADT from eclipse and the software site "https://dl-ssl.google.com/android/eclipse/" from "available software sites" and then reinstalled the ADT from "https://dl-ssl.google.com/android/eclipse/" using help->install new software. 我尝试从eclipse中删除ADT,并从“可用软件站点”中删除软件站点“ https://dl-ssl.google.com/android/eclipse/”,然后从“ https:// dl-ssl中重新安装了ADT。 google.com/android/eclipse /”(使用帮助->安装新软件)。 The installation was successful, but I still don't have any option for shortcuts to the SDK manager or the AVD in eclipse, and neither can I create a new android project. 安装成功,但是在Eclipse中,SDK管理器或AVD的快捷方式仍然没有任何选择,而且我也无法创建新的android项目。

By the way, the android perspectives are not gone, they are still here. 顺便说一下,android的观点并没有消失,它们仍然存在。 Also, I can manually open the avd and sdk manager from the directory where I have installed them. 另外,我可以从安装它们的目录中手动打开avd和sdk管理器。

Can anyone please show me a workaround? 谁能告诉我解决方法? Any help would be greatly appreciated. 任何帮助将不胜感激。

I have solved this as follows: 我已经解决了如下问题:

  1. Window > Customize Perspective... (you will see Android and AVD Manager are disabled) 窗口>自定义透视图...(您将看到Android和AVD Manager被禁用)

  2. Command Groups Availability > Android and AVD Manager > check 命令组可用性> Android和AVD Manager>检查

  3. Tool Bar Visibility > Android and AVD Manager > check 工具栏可见性> Android和AVD Manager>检查

I had similar problem after updating SDK from r20 to r21, but all I missed was the SDK/AVD Manager and running into this post while searching for the answer. 将SDK从r20更新到r21后,我遇到了类似的问题,但是我只想念SDK / AVD Manager,并且在寻找答案时遇到了这篇文章。

I managed to solve it by going to Window -> Customize Perspective , and under Command Groups Availability tab check the Android SDK and AVD Manager (not sure why it became unchecked because it was there before). 我设法通过转到“ Window -> Customize Perspective来解决它,然后在“命令组可用性”选项卡下检查Android SDK和AVD Manager(不知道为什么未选中它,因为它以前就被选中了)。 I'm using Mac by the way, in case the menu option looks different. 顺便说一句,如果菜单选项看起来不同,我正在使用Mac。

Well I feel silly, but my problem was that I was in the Debug perspective and they do not show up in that perspective. 好吧,我觉得很愚蠢,但是我的问题是我处于“调试”透视图中,而它们没有出现在该透视图中。 Switched back to the Java perspective and viola. 切换回Java透视图和中提琴。

窗口->自定义透视图->命令组可用性-> Android SDK和AVD Manager进行检查

Chances are that you may be running your eclipse using Java 1.5. 您可能会使用Java 1.5运行Eclipse。

Latest Plugin requires that the JRE be 1.6 or higher. 

You will have to use Eclipse that runs on JRE 1.6 您将必须使用在JRE 1.6上运行的Eclipse

Edit: I had run into same problems. 编辑:我遇到了同样的问题。 If it is not JRE problem then you can debug this. 如果不是JRE问题,则可以调试它。 Follow below procedure: 请遵循以下步骤:

  1. Window -> show View -> other -> Plugin Development -> Plugin Registry 窗口->显示视图->其他->插件开发->插件注册表
  2. In the plugin registry search for com.android.ide.eclipse.adt or any other plugin related to android (depending on your installation there maybe 7-8) 在插件注册表中搜索com.android.ide.eclipse.adt或任何其他与android相关的插件(取决于您的安装,可能是7-8)
  3. Select , Right Click -> Diagnose. 选择,右键单击->诊断。 This will show the problem why the plugin was not loaded 这将显示为什么未加载插件的问题

Try to reinstall ADT plugin on Eclipse. 尝试在Eclipse上重新安装ADT插件 Check out this: Installing the Eclipse Plugin 检查一下: 安装Eclipse插件

我建议您安装与您的Android SDK工具兼容的ADT插件,并尝试安装与您的Android SDK兼容的所有必需的插件LIKE Android SDK工具Rev 20.0.3 Android SDK工具Rev 20.0.3 Android SDK Platform-tools Rev 14适用于sdk api 10修订版1 ADT插件的Android 2.3.3(API 10)sdk平台修订版2示例

Unfortunately I ended up having to re-install eclipse. 不幸的是,我最终不得不重新安装eclipse。 but first (In Linux)(not sure of folder in Windows) do: 但首先(在Linux中)(不确定Windows中的文件夹)执行以下操作:

sudo rm -R /usr/share/eclipse/

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM