kolibreath
kolibreath

Reputation: 125

Android: invalid parent reference

Things get weird when I using Android Studio 3.0 to open a project which was programmed under Android Studio in an older version, after sync, this piece of code didn't work which was programmed by my friend, but I just can't figure it out that why it doesn't work.

 <style name="MyActionBar.MenuTextStyle"
    parent="style/TextAppearance.AppCompat.Widget.ActionBar.Title">
    <item name="android:textColor">@color/colorLightPurple</item>
    <item name="android:textSize">14sp</item>
</style>

enter image description here

This is the screenshot of the error.

Thanks in advance!

Upvotes: 5

Views: 2873

Answers (1)

Sony
Sony

Reputation: 7186

change parent="style/TextAppearance.AppCompat.Widget.ActionBar.Title" to parent="@style/TextAppearance.AppCompat.Widget.ActionBar.Title"

Upvotes: 24

Related Questions