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
解决了
本文介绍了解决ARouter与Kotlin版本冲突的问题。通过调整Kotlin版本为1.1.2-2并设置kotlin.incremental为false,成功消除了任务依赖循环导致的编译错误。
1758

被折叠的 条评论
为什么被折叠?



