No resource found that matches the given name after upgrading to AppCompat v23 in android studio

I have stocked in many times of by taking this No resource found that matches the given name after upgrading to AppCompat v23 in android studio. So, here i have decided to post, it solution for everyone, which is helpful who faced such kind of problem in android studio.

Solution:

Your compile SDK version must match the support library's major version.
Since you are using version 23 of the support library, you need to compile against version 23 of the Android SDK.
Alternatively you can continue compiling against version 22 of the Android SDK by switching to the latest support library v22. (solution from stackoverflow)

Sometime, if not working above solution  please try this,

replace:
          compile 'com.google.android.gms:play-services:+'
to:
          compile 'com.google.android.gms:play-services:8.3.0'

and vice versa.

Then you can continue full targeting API 22

If it still doesn't compile, sometimes is useful to set compileSdkVersion API to 23 and targetSdkVersion to 22.
No resource found that matches the given name after upgrading to AppCompat v23 in android studio No resource found that matches the given name after upgrading to AppCompat v23 in android studio Reviewed by D Kshetri on 6:05 PM Rating: 5

No comments:

Powered by Blogger.