Cannot choose between the following configurations of project

Cannot choose between the following configurations of project

1.现象描述

Android studio 2.3升级3.0之后报如下错误:

Cannot choose between the following configurations of project

2.解决办法

在module的build.gradle里面的dependencies加上一句:

compile project(path: ':rxlife', configuration: 'default')