当你新建一个android工程,既不生成MainActivity又不生成layout时,这是eclipse缺少相关组件导致的
解决办法:
Fixed it by updating the Eclipse plugin: Eclipse --> Help --> Install new software --> Pasted URL http://dl-ssl.google.com/android/eclipse/ pressed Enter. After updating the plugin.
原文地址: http://stackoverflow.com/questions/22219392/eclipse-doesnt-create-main-activity-and-layout