A项目中A3依赖A1,A2。B项目依赖A3
B项目settings.gradle中
include 'common-proto'
include 'common-proto-mj'
include 'service'
include 'common-mj'
include 'simulation-client'
project(':common-proto').projectDir = new File(settingsDir, '../iohao-card-common/common-proto/')
project(':common-proto-mj').projectDir = new File(settingsDir, '../iohao-card-common/common-proto-mj/')
project(':service').projectDir = new File(settingsDir, '../iohao-card-common/service/')
project(':common-mj').projectDir = new File(settingsDir, '../iohao-card-common/common-mj/')
project(':simulation-client').projectDir = new File(settingsDir, '../iohao-card-common/simulation-client/')
B项目build.gradle中
dependencies {
compile project(':common-mj')
compile project(':simulation-client')
}
结果在运行的时候报错
Error:java: Annotation processing is not supported for module cycles. Please ensure that all modules from cycle [common-mj_main,service_main,common-proto_main,common-proto-mj_main,simulation-client_main] are excluded from annotation processing