Questions tagged [kotlin-1.7]

2 questions
1
vote
1 answer

Kotlin. Java break alternative for when construction

I need break like in Java from when branch. From Kotlin 1.7.0 I get error when expression must be exhaustive Now I need to add a branch else. Inside else I want to just exit from when. I can use a return, but in this case, all the code after the…
testivanivan
  • 967
  • 13
  • 36
1
vote
1 answer

Kotlin 1.7.10 with Dagger "A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction"

When I upgraded to from Kotlin 1.6.10 to 1.7.10, I got error as per Title. It was changed to Kotlin 1.7.10 in the project build.gradle id 'org.jetbrains.kotlin.android' version '1.7.10' apply false It is using Dagger 2.41 implementation…
Elye
  • 53,639
  • 54
  • 212
  • 474