It worked in my project! →
Your build.gradle project should look like this: 
Note. It may be a little different if you are not using Realm and some Google services.

- Now, let's start → Go to you build.gradle App
Android-oriented platform modules Updating experimental multi-platform projects includes support for Android platform modules. These modules should use the appropriate plugin in the Gradle build script and use the common code from the general module:
- You will copy this inside your build.gradle ON THE TOP ADD IT -
Kapt Diagnostics Location At the moment, kapt, the Kotlin annotation processing tool, may offer location references in the Kotlin source code, rather than generated Java stubs, as it reports errors encountered while processing annotations. You can enable this function by adding these lines to the Gradle build script (build.gradle) construct:
apply plugin: 'com.android.application' apply plugin: 'kotlin-platform-android' apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt'
2. NOW ADD THIS:
kapt { mapDiagnosticLocations = true } dataBinding { enabled = true }
Improvements to the IntelliJ IDEA Kotlin plugin 1.2.30 offers various improvements to the IntelliJ IDEA Kotlin plugin, including performance improvements, bug fixes, and new checks and intentions.
For some projects this is important: you copy this inside your build.gradle -
allprojects { repositories { jcenter() google() }
It will look as follows
Now we need to add implementations inside the dependencies { ... // } build.gradle:
// Architecture Component - Room implementation "android.arch.persistence.room:runtime:1.1.0-beta1" kapt "android.arch.persistence.room:compiler:1.1.0-beta1" // Lifecyles, LiveData and ViewModel kapt 'com.android.databinding:compiler:3.1.0' // ViewModel and LiveData implementation "android.arch.lifecycle:extensions:1.1.1" // alternatively, just ViewModel implementation "android.arch.lifecycle:viewmodel:1.1.1" // alternatively, just LiveData implementation "android.arch.lifecycle:livedata:1.1.1" kapt "android.arch.lifecycle:compiler:1.1.1" // Room (use 1.1.0-beta1 for latest beta) implementation "android.arch.persistence.room:runtime:1.0.0" kapt "android.arch.persistence.room:compiler:1.0.0" // Paging implementation "android.arch.paging:runtime:1.0.0-alpha7" // Test helpers for LiveData testImplementation "android.arch.core:core-testing:1.1.1" // Test helpers for Room testImplementation "android.arch.persistence.room:testing:1.0.0"
* * *
- Clean up project
- Build it
- What is it!
More info: Android site :) Let me know if this works! (If this does not work, I try to help you find the best way)