5

When I create new android project, in "New blank activity", the wizard show an error Activity name must be specified as below:

enter image description here

What is this error? and Hierarchical parent used to be for what? if I type a string in Hierarchical Parent (ex: "test") then the error disappear.

and What is Error parsing XML: junk after document element? this error appear in my layout xml file.

Himanshu
  • 31,810
  • 31
  • 111
  • 133
Noah Nguyen
  • 51
  • 1
  • 3
  • 1
    Always try to write your class name in capital letters.In your case write the name of your activity in capital letters (i.e. Main). – Akshay Jul 30 '12 at 08:02
  • thank you but I have just tried this, but this red cross still there, error mention about "Activity Name" but the red cross locate at "Hierarchical Parent". I think the problem is "Hierarchical Parent". – Noah Nguyen Jul 30 '12 at 08:12

2 Answers2

5

I had the same problem. The problem is Eclipse/Android Plugin.

You have to update Eclipse.

Go Eclipse-->Help-->Check for Updates

Mark Comix
  • 1,878
  • 7
  • 28
  • 44
0

This may be the case of adt plugin problem. ReInstalling adt plugin may fix this problem.But keep in mind while installing adt plugin always check on

Contact all update sites during install to find required software

on eclipse

laaptu
  • 2,963
  • 5
  • 30
  • 49