为了账号安全,请及时绑定邮箱和手机立即绑定

AppCompat v7 r21在values.xml中返回错误?

AppCompat v7 r21在values.xml中返回错误?

三国纷争 2019-08-26 11:03:56
AppCompat v7 r21在values.xml中返回错误?我正在使用Android Studio,当我添加compile "com.android.support:appcompat-v7:21.0.0"到Gradle文件时,我遇到了大量错误:C:\Users\WindowsSucks\AndroidStudioProjects\MMMeds\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v11\values.xmlError:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.C:\Users\WindowsSucks\AndroidStudioProjects\MMMeds\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v14\values.xmlError:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.C:\Users\WindowsSucks\AndroidStudioProjects\MMMeds\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v21\values.xml所有这些似乎都出现在:\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v11\values.xml和\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v21\values.xml
查看完整描述

3 回答

?
海绵宝宝撒

TA贡献1809条经验 获得超8个赞

AppCompat v21构建了需要API 21(Android 5.0)中提供的新API的主题。要编译程序兼容性您的应用程序,您还需要编译针对API 21.编制的推荐安装/使用API 21建设是一个compileSdkVersion21buildToolsVersion21.0.1(这是在这个时候最高的-你总是要使用最新版本的工具) 。


查看完整回答
反对 回复 2019-08-26
  • 3 回答
  • 0 关注
  • 485 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信