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

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.xml

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'.

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.xml

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'.

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


三国纷争
浏览 486回答 3
3回答

海绵宝宝撒

AppCompat v21构建了需要API 21(Android 5.0)中提供的新API的主题。要编译程序兼容性您的应用程序,您还需要编译针对API 21.编制的推荐安装/使用API 21建设是一个compileSdkVersion的21和buildToolsVersion的21.0.1(这是在这个时候最高的-你总是要使用最新版本的工具) 。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Android