Home » Android » Eclipse with Android SDK missing menu items

Eclipse with Android SDK missing menu items

Posted by: admin April 23, 2020 Leave a comment

Questions:

I have two system that I’ve installed Eclipse (3.6) and the Android development tools (SDK, ADT). They both have the same versions. However, on one system, under the File -> New menu, there are Android specific items – New Android Project, New Android XML file. But on the other, those specific menu items are not there. Yes, I can get to the items by choosing File -> New -> Project, then in the dialog pick Android Project, but was wondering why I don’t have the specific items.

I’ve tried reinstalling Eclipse and the Android items, but the menu items just don’t match.

Anyone more familiar with Eclipse and it’s add-ons like Android have any idea? (Both system do have the “Open Android AVD and SDK” item under the window menu, FWIW)

Thanks.

How to&Answers:

I was able to restore the missing items in File | New… quite easily by performing the following steps:

  1. Switch to the Java perspective, either via the perspective switcher toolbar at the top right of the main Eclipse window, or via the Window | Open Perspective menu item.
  2. Reset the perspective by either right-clicking on the Java perspective icon in the perspective switcher toolbar, or by clicking Window | Reset Perspective…

As to why they weren’t there in the first place, the most likely cause would be that the ADT contributes various things to the Java perspective, and these changes don’t take effect until the perspective is reset after installing the ADT. As an Eclipse plug-in developer I learned it the hard way, that changes to perspectives don’t get picked up unless you explicitly reset them.

Answer:

Yes, seems this menu has a habit of disappearing, some sort of bug in Eclipse perspectives changing themselves.

Fix: In Eclipse click the Window menu and then “Customise Perspective”. In the Customise Perspective dialog click the “Command Groups Availability” and then tick the “Android SDK and AVD Manager”. Done.

Customise Perspective Dialog found in the Window menu

Answer:

Wouldn’t it appear on the menu after you create the first Android project ?

Answer:

When Resetting Perspective and neither Customize Perspective does`t work, you can delete config file responsible for this.

Just delete file workingsets.xml (resp. workbench.xml) in…\workspace.metadata.plugins\org.eclipse.ui.workbench\

(Credit to Pilot_51 for showing this solution)