Element type "activity" must be followed by either attribute specifications, ">" or "/>"
15,260
Solution 1
In your manifest you must have forget to close one of the attribute. Check out your manifest file closely and make sure you have closed all the tags.
Solution 2
I also faced the same isssue but I found that it was coming because of copying and pasting the code in xml file.
Please try to type the code manually and see. Hope the error will not come.
Author by
theRenaissanceMan
Updated on June 05, 2022Comments
-
theRenaissanceMan almost 2 years
I've read up on forum posts about similar errors, but nothing I read works. It looks like my formatting is fine, but I keep getting the indicated error. I've tried refreshing the project and cleaning the project as well as restarting Eclipse entirely.
<manifest ... > <application ... > <activity android:name="com.myNamespace.myPackage.MainActivity" android:label="@string/app_name"> </activity> </application> </manifest>