2017-06-29 18 views
0

我得到了下面的錯誤當科特林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) 

當我使用科特林版本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錯誤?

+2

在1.1.2-5中修復。在-4上發生在我身上,在降級到-3後解決。 –

回答

1

轉移到Kotlin版本1.1.2-5時,測試運行良好。謝謝@AntonKazakov!

+0

https://youtrack.jetbrains.com/issue/KT-17936似乎使用Android studio v3也可以修復它 –

+0

我正在使用Android Studio 3.0(canary 4)。在使用1.1.2-4進行編譯時,這裏存在這個問題 – Elye