解决Unable to resolve dependency for ':app@pre_release/compileClasspath': Could not resolve project

导入项目时遇到以下错误:

话不多说上干货,AndroidStudio版本号如下

File-Project Structure-Suggestions,人家很明确的告诉你其他项目无法匹配到build type 'pre_release',那解决方法也很简单了,要么给这些项目都加上,要么删除build type 'pre_release'

添加删除操作都在Build Variants中

OK编译成功了

猜你喜欢

转载自blog.csdn.net/jie_0754/article/details/102514134