https://kotlinlang.org logo
#android-studio
Title
# android-studio
b

Ben Abramovitch

11/25/2020, 4:39 PM
Hey everyone, I’m getting a really weird error and not sure if anyones seen this before / knows what to do? When I try to compile my project, if there’s an error, such a missing semicolon, or a missing { on a if statement, or maybe like just recently, i deleted an enum while converting it to a sealed class (which causes errors until fixed) instead of the build output telling me where my errors are, all i see is this
Copy code
Execution failed for task ':app:kaptInternalDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
   > java.lang.reflect.InvocationTargetException (no error message)
It just started out of the blue on me while I was working on unit tests yesterday. I hadn’t changed any build configurations. In the case where an error is because the file i’m touching, breaks another file, that file doesn’t even show as having an error in the IDE until i manually open the file. Invalidate Caches/Restart didn’t fix it. Restarting computer didn’t fix it. Rebuilding project didn’t fix it. Has anyone else had this happen? Kotlin 1.3.70, Gradle Build Tools 4.1.0, Gradle 6.5, Studio 4.1.1 Update: I just tried downgrading to Android Studio 4.1 as the upgrade to 4.1.1 was the latest thing I did (awhile ago) and it didn’t resolve it
7 Views