当android报这个错误:
Caused by: android.content.res.Resources$NotFoundException: File res/drawable/abc_ic_ab_back_material.xml from drawable resource ID
Android invalid drawable tag vector
一直都没找到什么好的解决方法,最后是修改appcompat-v7依赖包
dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' //compile 'com.android.support:appcompat-v7:24.0.1-beta1' //noinspection GradleCompatible compile 'com.android.support:appcompat-v7:23.0.1' } 从24.0.1改成23.0.1问题解决了. dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.2.1' compile 'com.android.support:design:23.2.1' }
近期评论