Arouter与Kotlin 踩坑

来源:互联网 发布:单机加密软件 编辑:程序博客网 时间:2024/06/05 17:01

Kotlin项目中引入ARouter报错,错误信息如下方所示

Error:Circular dependency between the following tasks::arouter2:compileReleaseKotlin\--- :arouter2:kaptReleaseKotlin     \--- :arouter2:compileReleaseKotlin (*)(*) - details omitted (listed previously)

这里写图片描述

晒出解决方式(原因不明)

将kotlin版本变为1.1.2-2’

这里写图片描述

在local.properties加入 kotlin.incremental=false
这里写图片描述

解决了