无法实例化 com.android.menubar.internal.MenuBarEnhancerCocoa [英] Failed to instantiate com.android.menubar.internal.MenuBarEnhancerCocoa

查看:21
本文介绍了无法实例化 com.android.menubar.internal.MenuBarEnhancerCocoa的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 android 开发新手,当我在 mac OSx 上使用 eclipse juno 创建一个新项目时,我在运行时遇到错误无法实例化 com.android.menubar.internal.MenuBarEnhancerCocoa

I am new to the android development and when i create a new project using eclipse juno on mac OSx i got an error at runtime Failed to instantiate com.android.menubar.internal.MenuBarEnhancerCocoa

在布局文件上是的,它还说 - 项目目标(Android 4.1)未正确加载.

And yes on the layout file it also says- The project target(Android 4.1) is not properly loaded.

请任何人帮助我如何摆脱这种情况.提前谢谢..

Anyone please help me how to get out of this. Thanks in advance..

是的,一切都已正确设置 SDK 和所有内容,因为整个设置在其他系统之一上正常运行.

And yes everything was setup properly SDK and all, because this whole setup is running properly on one of the other system.

推荐答案

我遇到了同样的问题,但设法解决了.com.android.menubar.internal.MenuBarEnhancerCocoa - 不在链接到 Eclipse 安装的 SDK 中(由于各种原因,我有多个 - 例如最新的 Eclipse 不支持 AppEngine).我必须采取许多步骤来解决这个问题(所以其中任何一个都可能是实际的修复,或者组合可以解决问题).这是一个清单:

I had the same problem but managed to resolve it. com.android.menubar.internal.MenuBarEnhancerCocoa - was not in the SDK that was linked to Eclipse install (I have multiple for various reasons - e.g. AppEngine not supported in latest Eclipse). There were a number of steps I had to do to resolve this (so any one of them may be the actual fix or a combination may resolve the problem). Here's a checklist :

  1. 如果您已安装 Eclipse - 单击 Android SDK 管理器图标.确保它指向最新的 Android SDK(编写时为 R20)
  2. 因为它是一个新的 Eclipse+SDK - 通过从 SDK 管理器中显示的目标列表中选择来添加构建目标.同时添加 Android 支持工具
  3. 重启 Eclipse.当被问及他的工作空间时 - 创建一个新的.我认为我的一些问题与旧项目有关.
  4. 问题应该已经消失了.最后一件事是,一旦你创建了一个项目——检查你的证书是否过期.还有另一个关于更新调试证书的线程(删除位于 ~/.android/debug.keystore 中的密钥库,然后重新启动 Eclipse.)
  5. 创建一个新的 AVD 目标.

希望这些事情有所帮助.

Hope those things help.

这篇关于无法实例化 com.android.menubar.internal.MenuBarEnhancerCocoa的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆