android No resource found that matches the given name attr的一種解決辦法
總的原則:
用于編譯的SDK的版本 >= 所用支持庫的版本,如用了下面的庫:
[java]view plaincopy
compile?'com.android.support:design:22.2.1'??
那么SDK的版本要>=22:
[java]view plaincopy
compileSdkVersion?22??
此外,使用Android Support Design庫后,如果項(xiàng)目中再次使用support v4包,會(huì)發(fā)生沖突,報(bào)java.exe finished with non-zero exit value 2這個(gè)錯(cuò),此時(shí)刪掉項(xiàng)目中的v4包即可。