After switching to compose version beta08, updating kotlin version to 1.5.10 I am stuck on the build error which is in 🧵
I compared my setup with Crane sample app so I could not spot specific differences.
I also searched on Google. It seams it is general compiler issue so I did not find something useful related to compose.
Stack trace and build file snippets in thread.
Any help is appreciated 🙇♂️
Alright. That’s weird though cause the sample app compiles fine with beta08 and kotlin 1.5.10
06/06/2021, 12:58 PM
May be a long shot, but you can try removing that entire kotlinOptions block.
java 8 is the default now, IR is on by default, and that flag (AFAIK) I have never used it/needed it in 5 of my compose projects.
06/06/2021, 7:59 PM
Not sure ... but this fixed us? Wish we had a better answer ...
06/06/2021, 8:22 PM
You can follow tickets in the thread linked above to be notified when this will be fixed/released. Also you can downgrade to beta07
I have no idea what this error means but was able to identify the exact code that triggers this error in my project (spent a lot of time on it commenting out almost everything until error disappeared) and refactored it to non-failing version. I think it has something to do with interfaces with generics and classes that implement those interfaces. You can find examples of problem code in those same tickets