今天遇到个问题之前没碰到过,记录一下java.lang.IllegalStateException: This app has been built with an incorrect configuration. Please configure your build for VectorDrawableCompat
查看了网上的一些解决办法,很简单方式如下
产生的原因是:com.android.support:appcompat-v7与rasterized vectors不兼容,gradle2.0及其之上,library的资源没有栅格化,所以不会发生这个问题
1.在projectgradle中将gradle版本改为2.0或者之上
- dependencies {
- classpath 'com.android.tools.build:gradle:2.0.0'
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
- }