Unresolved reference: serializer on specific file
See original GitHub issueDescribe the bug
This is a very weird bug that happened to me. Took me hours to figure it out. Basically, I’m getting an Unresolved reference: serializer
error when trying to use it. The IDE is fine, there’s no error. I can use the file but every time I compile, it’s having an error. Now, all my configurations are good. I was able to use them normally until I introduced this normal data class. I restarted my IDE, doesn’t work. Restart and Invalidate, still doesn’t work. Clean, doesn’t work. Rebuild, doesn’t work, Clean, Rebuild, then restart and invalidate, still didn’t work. And then I decided to move the file away to another folder. IT WORKED. I renamed it back and it didn’t work again. I was thinking is there some sort of cache or something blocking it. If I’m missing something, please do point me in the right direction. Many thanks!
To Reproduce I’m not able to reproduce it specifically.
Expected behavior
No Unresolved reference: serializer
bug
Environment
- Kotlin version: 1.3.50
- Library version: 0.13.0
- Kotlin platforms: Multiplatform - Common
- Gradle version: 5.4.1
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Probably stopping Kotlinc/Gradle daemon (or
killall java
🙃 ) may also help in overcoming incremental compilation glitches.Try to wipe out the gradle cache in your project. It seems likely that this is a problem with incremental compilation.