Failed to instantiate com.android.menubar.internal.MenuBarEnhancerCocoa

前端 未结 3 1296
余生分开走
余生分开走 2021-02-06 04:25

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.int

3条回答
  •  一向
    一向 (楼主)
    2021-02-06 05:04

    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. If you have installed Eclipse - click the Android SDK manager icon. Ensure it is pointing to the latest Android SDK (R20 as of writing)
    2. As it's a new Eclipse+SDK - add the build targets by selecting from the list of targets that appear in the SDK manager. Also add Android support tools
    3. Restart Eclipse. When asked about he workspace - create a new one. I thought some of my problems would be linked to old projects.
    4. The problems should have gone away. One final thing is, once you create a project - check your certificates have not expired. There's another thread on updating the debug certificate (Delete your keystore located in ~/.android/debug.keystore then restart Eclipse.)
    5. Create a new AVD target.

    Hope those things help.

提交回复
热议问题