No resource found that matches the given name

来源:互联网 发布:java 多线程 csdn 编辑:程序博客网 时间:2024/05/22 13:54

遇到这个问题的时候首先查看compileSdkVersion

android {    compileSdkVersion 23    buildToolsVersion "23.0.1"    defaultConfig {        minSdkVersion 14        targetSdkVersion 23    }}

和依赖项(dependencies)的支持库是否是同一个版本的

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

支持库必须是compile ‘com.android.support:appcompat-v7:23.2.1’。

compileSdkVersion 23的编号和compile ‘com.android.support:appcompat-v7:23.2.1’必须是一致的。

0 0