没有找到的资源支持错误:应用程序兼容性-V7:22.0.0在Android工作室 [英] No resource found Errors for support:appcompat-v7:22.0.0 on Android Studio

查看:321
本文介绍了没有找到的资源支持错误:应用程序兼容性-V7:22.0.0在Android工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试添加以下这一指导方针设计支持库的https: //github.com/$c$cpath/android_guides/wiki/Design-Support-Library 和我遇到的问题。

  {相关性
          编译com.android.support:appcompat-v7:22.2.0
}

尝试添加此与建设时,给了我很多XML错误。

 错误:(24 63)无资源发现给定的名称相匹配(在绘制,值为@绘制/ abc_textfield_default_mtrl_alpha')。
错误:(25 93)无资源发现给定的名称相匹配(在绘制,值为@绘制/ abc_textfield_default_mtrl_alpha')。
错误:(26 33)无资源发现给定的名称相匹配(在绘制,值为@绘制/ abc_textfield_activated_mtrl_alpha')。错误:(20 118)无资源的发现,给定的名称相匹配(在绘制,值为@绘制/ abc_list_selector_disabled_holo_dark')。
错误:(21 118)无资源的发现,给定的名称相匹配(在绘制,值为@绘制/ abc_list_selector_disabled_holo_dark')。
错误:(20 118)无资源的发现,给定的名称相匹配(在绘制,值为@绘制/ abc_list_selector_disabled_holo_light')。
错误:(21 118)无资源的发现,给定的名称相匹配(在绘制,值为@绘制/ abc_list_selector_disabled_holo_light')。错误:(18 29)否资源发现给定的名称相匹配(在绘制,值为@绘制/ abc_list_ pressed_holo_light')。
错误:(22 118)无资源的发现,给定的名称相匹配(在绘制,值为@绘制/ abc_list_selector_disabled_holo_dark')。
错误:(23 118)无资源的发现,给定的名称相匹配(在绘制,值为@绘制/ abc_list_selector_disabled_holo_dark')。错误:(22 118)无资源的发现,给定的名称相匹配(在绘制,值为@绘制/ abc_list_selector_disabled_holo_light')。
错误:(23 118)无资源的发现,给定的名称相匹配(在绘制,值为@绘制/ abc_list_selector_disabled_holo_light')。
错误:(19 27)无资源发现给定的名称相匹配(在绘制,值为@绘制/ abc_btn_rating_star_off_mtrl_alpha')。
错误:(21 27)无资源发现给定的名称相匹配(在绘制,值为@绘制/ abc_btn_rating_star_off_mtrl_alpha')。错误:(23 27)无资源发现给定的名称相匹配(在绘制,值为@绘制/ abc_btn_rating_star_on_mtrl_alpha')。
错误:(19 29)否资源发现给定的名称相匹配(在绘制,值为@绘制/ abc_btn_switch_to_on_mtrl_00001')。资料:构建失败

这是下面的build.gradle

 应用插件:'com.android.application安卓{
    compileSdkVersion 22
    buildToolsVersion22.0.1    defaultConfig {
        的applicationIDcom.example.hp.navigationexercise
        21的minSdkVersion
        targetSdkVersion 22
        版本code 1
        的versionName1.0
    }
    buildTypes {
        发布 {
            minifyEnabled假
            proguardFiles getDefaultProguardFile('proguard的-android.txt'),'proguard-rules.pro
        }
    }
}依赖{
    编译文件树(导演:'库',包括:['的* .jar'])    编译com.android.support:support-v4:22.2.0
    编译com.android.support:appcompat-v7:22.0.0
    编译com.android.support:support-annotations:22.2.0
    编译com.android.support:design:22.2.0
    编译com.android.support:recyclerview-v7:22.2.0
}


解决方案

我得到这个错误时文件名过长。

如果您在Windows下运行,你的编译/中间体/ ...文件可能会很长。你会得到一个奇怪的错误,如这一个,如果出现这种情况。

Am trying to add the Design support Library following this guidelines https://github.com/codepath/android_guides/wiki/Design-Support-Library and i'm having issues.

dependencies {
          compile 'com.android.support:appcompat-v7:22.2.0'
} 

Trying to add this and Its giving me lots of XML errors when building.

Error:(24, 63) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_default_mtrl_alpha').
Error:(25, 93) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_default_mtrl_alpha').
Error:(26, 33) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_activated_mtrl_alpha').

Error:(20, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_dark').
Error:(21, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_dark').
Error:(20, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_light').
Error:(21, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_light').

Error:(18, 29) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_pressed_holo_light').
Error:(22, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_dark').
Error:(23, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_dark').

Error:(22, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_light').
Error:(23, 118) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_list_selector_disabled_holo_light').
Error:(19, 27) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_rating_star_off_mtrl_alpha').
Error:(21, 27) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_rating_star_off_mtrl_alpha').

Error:(23, 27) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_rating_star_on_mtrl_alpha').
Error:(19, 29) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_btn_switch_to_on_mtrl_00001').

Information:BUILD FAILED

This is the build.gradle below

apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion "22.0.1"

    defaultConfig {
        applicationId "com.example.hp.navigationexercise"
        minSdkVersion 21
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])

    compile 'com.android.support:support-v4:22.2.0'
    compile 'com.android.support:appcompat-v7:22.0.0'
    compile 'com.android.support:support-annotations:22.2.0'
    compile 'com.android.support:design:22.2.0'
    compile 'com.android.support:recyclerview-v7:22.2.0'
}

解决方案

I got this error when the filename was too long.

If you are running under windows, your build/intermediates/... files can get very long. You will get an odd error like this one if that happens.

这篇关于没有找到的资源支持错误:应用程序兼容性-V7:22.0.0在Android工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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