JRG-Developer
JRG-Developer

Reputation: 12663

No resource found that matches the given name @style/Widget.AppCompat.EditText

I'm receiving this error from Android Studio each time I try to build my project:

No resource found that matches the given name (at 'editTextStyle' with value '@style/Widget.AppCompat.EditText').

I've tried these items to no avail:

Upvotes: 1

Views: 1308

Answers (3)

Zohaib Hassan
Zohaib Hassan

Reputation: 984

Go to App level "build.gradle" file and make sure the "buildToolsVersion" and "support:appcompat-v7" version are same. And also make sure "targetSdkVersion" and "compileSdkVersion" are same and doesn't differ from "buildToolsVersion" as well. If that doesn't work then try to add latest version of Android for all these values mentioned above. Then Sync the project and Run. Hope it'll work!

Upvotes: 0

Daniel Gomez Rico
Daniel Gomez Rico

Reputation: 15936

Looks like you are trying to access some resource from a .xml file that doesn't exist.

Upvotes: 0

Sasi Kumar
Sasi Kumar

Reputation: 13313

Go to your appcompat folder your system(C:.....\sdk\extras\android\support\v7\appcompat) ,

Open the project.properties file then change the value from

default 19 to 21

target=android-21

save the file and then refresh your project.

Then clean the project

Upvotes: 1

Related Questions