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

前端 未结 3 1285
余生分开走
余生分开走 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.

    0 讨论(0)
  • 2021-02-06 05:08

    It appears to me the com.android.menubar.internal.MenuBarEnhancerCocoa is only there to make the android app feel nicer if it's run directly. Then preferences and about will be in the application menu. If you run the android sdk manager from eclipse, then eclipse will take over that part of the application menu.

    0 讨论(0)
  • 2021-02-06 05:09

    Although it doesn't sort out the issue it may be useful anyway. There's the web page with the sources MenuBarEnhancer where there's the call to instantiate the com.android.menubar.internal.MenuBarEnhancerCocoa class.

    0 讨论(0)
提交回复
热议问题