Reputation: 12663
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:
compile 'com.android.support:appcompat-v7:25.3.1'
from build.gradle
.Upvotes: 1
Views: 1308
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
Reputation: 15936
Looks like you are trying to access some resource from a .xml
file that doesn't exist.
Upvotes: 0
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