I have recently installed Eclipse IDE for Java Developers (Version: 3.6.1) with the Android SDK Platform 2.1update1 - on Windows 7.
I can add, edit and run code for
In the "Graphical Layout" tab of the layout editor there is a dropdown for selecting the Android version to use. In your case it is probably blank, so select a version and you're probably good to go.