I was able to generate debug apks just fine then suddenly my pc crashed and from then, whenever i am trying to generate a apk it gives this error.
Execution failed for task ':app:kaptDebugAndroidTestKotlin' java.io.StreamCorruptedException: invalid stream header: 00000000
These are some pics for reference