(Kotlin) Backend Internal error: Exception during code generation

For people who are having this issue with jetpack compose add the following lines in build.gradle file

android {
    ...
    composeOptions {
        kotlinCompilerExtensionVersion "0.1.0-dev04"
    }
}

Credit to EPIXOR


I had the same problem, because I was using inconsistent version of Anko. With kotlin 1.3.x you have to use this v0.10.8 version of anko or newer.


I was getting the same error. But in my case, I was writing unit test case and my test case name was too long. like this...

@Test
fun `check invocation of sendMessageWithImages on invocation of sendMessage when isUploadImageValid and reponse is success with no error`() { //test implemantation}

I find this culprit by thinking, what unusual, I am doing here, that we not supposed to do in real android programming. So think like this. If any given solution not work for you. Thanks