Top "Kotlin" questions

Kotlin is an open-source, statically typed programming language supported and developed by JetBrains.

how to access downloads folder in android?

I am new android, i'm making an app in which one can download files to downloads folder (using Download Manager). …

java android kotlin android-progressbar android-storage
How to check if a "lateinit" variable has been initialized?

I wonder if there is a way to check if a lateinit variable has been initialized. For example: class Foo() { …

kotlin
Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6

When trying to run the Example CorDapp (GitHub CorDapp) via IntelliJ, I receive the following error: Cannot inline bytecode built …

android intellij-idea kotlin jvm corda
How to call a function after delay in Kotlin?

As the title, is there any way to call a function after delay (1 second for example) in Kotlin?

android kotlin
Format in kotlin string templates

Kotlin has an excellent feature called string templates. I really love it. val i = 10 val s = "i = $i" // evaluates to "…

string-formatting kotlin
Kotlin unresolved reference in IntelliJ

I started off with the tutorial for learning Kotlin in IntelliJ.When I tried running the example i.e fun …

intellij-idea jvm kotlin
Error:Execution failed for task ':app:compileDebugKotlin'. > Compilation error. See log for more details

Error:Execution failed for task ':app:compileDebugKotlin'. > Compilation error. See log for more details build:gradle(Module:app) …

android kotlin gradle build gradle-kotlin-dsl
No Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator

I am trying to consume an API using Retrofit and Jackson to deserialize. I am getting the onFailure error No …

android kotlin jackson retrofit2
Android Room - simple select query - Cannot access database on the main thread

I am trying a sample with Room Persistence Library. I created an Entity: @Entity public class Agent { @PrimaryKey public String …

android crash kotlin android-studio-3.0 android-room