在values​​.xml问题,更新应用程序兼容性-V7:21 [英] Problems in values.xml to update appcompat-v7:21

查看:299
本文介绍了在values​​.xml问题,更新应用程序兼容性-V7:21的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有类似的问题,但没有答案的解决我的问题。
这是错误升级到21版时

I know there are similar questions, but none of the answers solved my problem. this is the error when upgrading to version 21

在\\应用程序兼容性-V7 \\ 21.0.0 \\水库\\值-V11和值-V7 \\ values​​.xml
错误:未发现的资源与给定名称匹配:ATTR'机器人:actionModeShareDrawable。

in \appcompat-v7\21.0.0\res\values-v11 and values-v7 \values.xml Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

在\\应用程序兼容性-V7 \\ 21.0.0 \\水库\\值-V21 \\ values​​.xml
错误:未发现的资源与给定名称匹配:ATTR'机器人:overlapAnchor。

in \appcompat-v7\21.0.0\res\values-v21\values.xml Error: No resource found that matches the given name: attr 'android:overlapAnchor'.

还有就是我的build.gradle

there is my build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion '21.1.1'
    defaultConfig {
        minSdkVersion 15
        targetSdkVersion 21
        renderscriptTargetApi 21
        renderscriptSupportMode true
        ...
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('prog uard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }
}

repositories {
    maven { url "http://dl.bintray.com/populov/maven" }
    mavenCentral()
    maven { url 'http://JRAF.org/static/maven/2' }
}



dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:21.0.0'
    compile 'com.android.support:support-v4:21. 0.0'
    compile 'com.android.support:recyclerview-v7:+'
    compile 'com.android.support:cardview-v7:21.0.0'
    compile 'com.google.android.gms:play-services:6.1.11'
    compile 'com.android.support:gridlayout-v7:21.0.0'

    compile 'com.github.chrisbanes.photoview:library:1.2.3'
    compile 'com.jakewharton:butterknife:5.1.0'
    compile 'com.github.johnkil.android-appmsg:appmsg:1.2.0'
    compile 'com.github.flavienlaurent.datetimepicker:library:0.0.2'

}

和有我的SDK经理

有任何想法吗?谢谢

and there is my sdk manager Any ideas? thanks

推荐答案

重装机器人工作室和SDK,问题得到解决。

reinstall android studio and sdk and the problem was solved

这篇关于在values​​.xml问题,更新应用程序兼容性-V7:21的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆