Appcompat V7 R21 Returning Error in Values.Xml

AppCompat v7 r21 returning error in values.xml?

AppCompat v21 builds themes that require the new APIs provided in API 21 (Android 5.0). To compile your application with AppCompat, you must also compile against API 21. The recommended setup for compiling/building with API 21 is a compileSdkVersion of 21 and a buildToolsVersion of 21.0.1 (which is the highest at this time - you always want to use the latest build tools).

Problems in values.xml to update appcompat-v7:21

reinstall android studio and sdk and the problem was solved

Error while using support-v4 and and appcompat-v7

don't use the both library: v4 and v7 both

Simply switch to the only one latest library which is better i.e.:

compile 'com.android.support:appcompat-v7:23.1.1'

v7 includes the v4 support library so there is no need to have it in there again

try to add this also

 compile 'com.android.support:design:23.0.1'

Your build.gradle file may have problem like compleSdkVersion or buildToolsVersion.

Therefore, when you are using support and design v23 you have to compile against SDK 23.

compileSdkVersion 23
buildToolsVersion '23.1.1'

and also try to check 23.0.1 instead 23.1.1 if you may not have your sdk update, trying to utilize.

Finally after posting you build.gradle i found you change
targetSdkVersion 23, also clean, rebuild project, try to restart if possible.
Thanks



Related Topics



Leave a reply



Submit