[Fixed] Error:(3) Error retrieving parent for item: No resource found that matches the given name ‘android’

error message:Error:(3) Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Borderless.Colored’.Error:(4) Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Colored’.Error:(3) Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Borderless.Colored’.Error:(4) Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Colored’.

solution:
Use supported version 25.1.0. I was unable to reproduce the problem with a small project targeting an older version (24), but mainly with a support library version error. Try to move to at least major version 25, delete the entire build directory, and synchronize the project again. Note that changing the supported version will cause you to change compileSdkVersion to the same dominant version.
also checks carefully to see if the resource file has been explicitly defined for property 24 (as shown in the screenshot).

This means change your compileSdkVersion in Build.gradle to 25 and above! Others are not supported.

Read More: