您的位置:首页 > 移动开发

java.lang.IllegalStateException: This app has been built with an incorrect configuration. Please co

2017-11-08 16:24 1571 查看
今天遇到个问题之前没碰到过,记录一下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  
    }  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐