Error with Android Style

0

I'm not able to compile my project, I get the following error

<type> attribute is required for <item>

Here'smystyle.xml

<?xmlversion="1.0" encoding="utf-8" ?>
<resources>
<style name="MyTheme" parent="MyTheme.Base">
</style>
<style name="MyTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- O Erro está nessa linha abaixo-->
<item name="windowNoTitle">true</item>

<item name="windowActionBar">false</item>
<item name="colorPrimary">@color/primary</item>
<item name="colorPrimaryDark">@color/primaryDark</item>
<item name="colorAccent">@color/accent</item>

</style>
<item name="elevation">0dp</item>
<style name="MyTheme.Base" parent="Theme.AppCompat.Light">
</style>

<style name="MyTheme" parent="MyTheme.Base">
</style>

<style name="MyTheme.Splash" parent ="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowBackground">@drawable/tbbt</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
</style>
</resources>

The error is on line 8.

    
asked by anonymous 25.05.2017 / 03:09

1 answer

2

According to documentation , a <item> element must be child of a <style> element. Review the following excerpt from your file:

<item name="elevation">0dp</item>

Note that it does not have a <style> parent.

    
25.05.2017 / 03:48