Skip to content Skip to sidebar Skip to footer

Splash Screen Activity - The Element Must Be A Direct Child Of The Element [wrongmanifestparent]

I am using an open source android project called Timber & I've been trying to add a splash screen to it but am having no luck. How would I go about doing it? Here my AndroidMan

Solution 1:

Check your activity tags

This isn't closed

<activity
    android:name="com.technologx.blaze.player.pro.SplashActivity"
    android:label="@string/app_name"
    android:screenOrientation="portrait"
    android:theme="@style/TranslateThemeFull">

You need to end that with />

OR... you need to move one of these close tags up.

</activity>
</activity>

Basically, you can't have an activity in another one, hence WrongManifestParent

Suggestion: Undo to a state that is runnable, then go to File > New > Activity, and it'll touch the manifest correctly for you.

Sidenote: Timber is a already an Android library

Post a Comment for "Splash Screen Activity - The Element Must Be A Direct Child Of The Element [wrongmanifestparent]"