Kotlin: Unit testing Room and LiveData

Question or issue of Kotlin Programming: I’m currently developing an app using the newly Android Architecture Components. Specifically, I’m implementing a Room Database that returns a LiveData object on one of its queries. Insertion and querying work as expected, however I have an issue testing the query method using a unit test.

Continue Reading

Error:Execution failed for task ‘:app:compileDebugKotlin’. > Compilation error. See log for more details

Question or issue of Kotlin Programming: Error:Execution failed for task ‘:app:compileDebugKotlin’. > Compilation error. See log for more details build:gradle(Module:app) buildscript { repositories { maven { url ‘https://jitpack.io’ url ‘https://maven.fabric.io/public’ } } dependencies { classpath ‘io.fabric.tools:gradle:1.+’ } } apply plugin: ‘com.android.application’ apply plugin: ‘kotlin-android’ apply plugin: ‘io.fabric’ apply plugin: ‘kotlin-android-extensions’ repositories { maven { url […]

Continue Reading