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 changetargetSdkVersion 23
, also clean, rebuild project, try to restart if possible.
Thanks
Related Topics
Android Listview Not Refreshing After Notifydatasetchanged
Recyclerview Header and Footer
How to Debug JavaScript on Android
Android - How to Receive Broadcast Intents Action_Screen_On/Off
Custom Getfilter in Custom Arrayadapter in Android
How to Set Background Color of a View
How to Change the Color of a Part of a Textview
Unknown Option 'Allow-Unrelated-Histories'
Setting Global Styles for Views in Android
Alertdialog.Builder with Custom Layout and Edittext; Cannot Access View
Android: Temporarily Disable Orientation Changes in an Activity
Android P - 'Sqlite: No Such Table Error' After Copying Database from Assets
How to Use Addr2Line in Android
Cannot Get Searchview in Actionbar to Work
Connecting to MySQL from Android with Jdbc
Recyclerview Horizontal Scroll Snap in Center
App Is Misconfigured for Facebook Login: Android Facebook Integration Issue