Please make sure you are using the correct version of KSP for kotlin. E.g. If using version 2.2.0 of Kotlin, use the 2.2.0-2.0.2 of KSP. They are not compatible otherwise.