This support library should not use a different version (25) than the compileSdkVersion

导入安卓项目时出现: This support library should not use a different version (25) than the compileSdkVersion错误,并且好多api报红。

这是由于Android Stadio的SDK版本与app模块的build.gradle中的依赖冲突导致的。

解决办法很简单:新建一个项目,打开新建项目的build.gradle文件,将导入项目中的依赖替换成新建项目中的依赖

posted @ 2017-09-29 15:20  _chenyl  阅读(209)  评论(0编辑  收藏  举报