Skip to content Skip to sidebar Skip to footer

Java.lang.assertionerror: Call 'public Final Fun

I'm trying to make a project using jetPack Compose , i have all necessary dependencies for it to work but when i run my app , it throws an error that i couldn't find a solution for

Solution 1:

I got it working by settings the composeOptions, I got this error when I had kotlinCompilerExtensionVersion = "1.0.0-alpha08", whilst rest of the libraries where alpha09.

    composeOptions {
        kotlinCompilerVersion = "1.4.21"
        kotlinCompilerExtensionVersion = "1.0.0-alpha09"
    }

Solution 2:

There seems to be an issue with compose version alpha09, downgrade to alpha08 and it should work.

Source: https://issuetracker.google.com/issues/176046527

Solution 3:

For me JuliusScrip's answer didn't completely solve it: if you use ext.kotlin_version in your build.gradle(:project) file, you'll need to update that too:

buildscript {
  ext.kotlin_version = "1.4.21"
  ...
}

For anyone needing more details, this video is completely about this error: https://www.youtube.com/watch?v=itvv6m4haGY&feature=emb_logo

Post a Comment for "Java.lang.assertionerror: Call 'public Final Fun "