Hi all, I’m trying to use Room DB for Android but ...
# kapt
i
Hi all, I’m trying to use Room DB for Android but I’m having some issues. My current setup is * Kotlin 1.1.2-2 * Android Gradle plugin 2.3.2 * Gradle wrapper 3.5 I’m applying these plugins:
Copy code
apply plugin: "com.android.application"
apply plugin: "kotlin-android"
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: "kotlin-allopen"
I’m using these dependencies:
Copy code
compile "org.jetbrains.kotlin:kotlin-stdlib:1.1.2-2"

compile "android.arch.persistence.room:runtime:1.0.0-alpha1"
kapt "android.arch.persistence.room:compiler:1.0.0-alpha1"
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:1.1.2-2"
When I try to build, I get the following error:
Copy code
Error:Gradle: Execution failed for task ':clue-android-app:kaptInternalKotlin'.
> Compilation error. See log for more details

[..]/java/com/biowink/clue/abtests/SplitTestsAnalyticsTags.kt
Error:Gradle: Some error(s) occurred while processing annotations. Please see the error messages above.
That file is just an
object
with a couple of string properties. The same error occurres when I try to build with Kotlin 1.1.2-3. If I try to use Kotlin 1.1.2-4 I get the following error:
Copy code
Error:Gradle: Circular dependency between the following tasks:
:clue-android-app:compileInternalKotlin
\--- :clue-android-app:kaptInternalKotlin
     \--- :clue-android-app:compileInternalKotlin (*)
(*) - details omitted (listed previously)
I’m using https://github.com/dlew/android-architecture-counter-sample as reference, but our project contains way more dependencies unfortunately: Dagger and Databinding, to mention a couple. Any help, please? 😞