When creating new android project, getting error “Activity Name must be specified”

南笙酒味 提交于 2019-12-10 16:26:44

问题


When I'm trying to create a new Android Application Project in the step as shown below getting error "Activity Name must be specified". Same happens when I try to create a new activity. I'm a bit confused about Hierarchical parent class. What is use of it? Why Eclipse is not allowing me to create activity without specifying it? (It should have been optional) How can I create an Activity without specifying Hierarchical parent?

Thank You very much.


回答1:


In Eclipse Go to Window==>preferences=>Install/update then click uninstall or update =>Click on Installed Software and update your Android development tool.




回答2:


This is the feature of action bar. I think that the hierarchical parent activity is launched when the user click on the back button of Action Bar. I give the name of launcher activity here and it works fine... As for launcher activity, there is no Hierarchical parent. :)



来源:https://stackoverflow.com/questions/12085398/when-creating-new-android-project-getting-error-activity-name-must-be-specifie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!