Error:(15, 21) No resource found that matches the given name: attr 'android:keyboardNavigationCluste

来源:互联网 发布:布鲁克斯甘油14知乎 编辑:程序博客网 时间:2024/06/03 22:14

android No resource found that matches the given name attr的一种解决办法


总的原则:

用于编译的SDK的版本 >= 所用支持库的版本,如用了下面的库:

[java] view plain copy
  1. compile 'com.android.support:design:22.2.1'  
那么SDK的版本要>=22:

[java] view plain copy
  1. compileSdkVersion 22  


此外,使用Android Support Design库后,如果项目中再次使用support v4包,会发生冲突,报java.exe finished with non-zero exit value 2这个错,此时删掉项目中的v4包即可。
阅读全文
0 0