用Kotlin 1.1.2-4编译时的循环依赖关系,而不是1.1.2-3
我得到了下面的错误
* What went wrong: Circular dependency between the following tasks: :app:compileProductionDebugKotlin \--- :app:kaptProductionDebugKotlin \--- :app:compileProductionDebugKotlin (*) (*) - details omitted (listed previously)
当我使用Kotlin版本1.1.2-4(好的时候我用1.1.2-3)。
在我的应用程序build.gradle我有以下
apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt'
当我删除kotlin-kapt
,它编译得很好。
我做错了什么,或者这是一个Kotlin错误?
转移到Kotlin版本1.1.2-5时测试运行良好。 谢谢@AntonKazakov!