安卓报错No matching configuration of project :framelib was found.

问题遇到的现象和发生背景

拿了别人的一个项目,放到自己电脑上就会报错

运行结果及报错内容

No matching configuration of project :framelib was found. The consumer was configured to find an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' but:
- None of the consumable configurations have attributes.

:framelib 这个应该是一个module。根据log日志提示,定位下原因。是不存在framelib module 库。还是gradle同步不成功导致的问题。

一般都是gradle中的配置有问题
或者是as版本高,项目的版本低,需要做升级处理