Skip to content Skip to sidebar Skip to footer

The Element Must Be A Direct Child Of The Element Error

I have added my third class to my package, and I want to add it to my androidmanifest.xml file. I have added the second class easily with no problem, but I'm stuck with the third

Solution 1:

In

<activityandroid:name="com.metoo.codedetective.Etelaateomoomi"><activityandroid:name=".Factoryreset"></activity></activity>

remove <activity android:name=".Factoryreset"> </activity> because this is an activity in an activity which is not allowed.

I think you need this:

<activityandroid:name="com.metoo.codedetective.Etelaateomoomi.Factoryreset"></activity>

Solution 2:

Remove the following lines that represent an activity inside another activity.

<activityandroid:name=".Factoryreset"></activity>

Post a Comment for "The Element Must Be A Direct Child Of The Element Error"