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建设是一个compileSdkVersion
的21
和buildToolsVersion
的21.0.1
(这是在这个时候最高的-你总是要使用最新版本的工具) 。
- 3 回答
- 0 关注
- 485 浏览
添加回答
举报
0/150
提交
取消