Hi all :wave: I'm getting this error when compilin...
# compose-ios
r
Hi all 👋 I'm getting this error when compiling iOS target:
Copy code
error: java.lang.IllegalArgumentException: An interface expected but was Any
full stacktrace on thread. Have you guys ever seen this? Or any idea what it could be?
fulltrace.txt
Can't really prepare a reproducer since the code from my employer. I think finding out what's causing it so I could reproduce it with different project would be a big effort too 😬
p
Is saying that: error: Compilation failed: An interface expected but was Any Looks like the compiler broke internally. What Java/gradle version you have on your Mac
l
Is there any chance this is regarding an expect/actual?
r
talking only about my project's code, I do have some expect actual usages
I have java 17, 11. I'm using 11 on the project via jvmToolchain etc
gradle is 8.2.1
compose 1.5 and kotlin 1.9
p
Versions look compatible, is the same if you setup jvmtoolchain to 17?. It is weird it doesn't provide information about the file where it happens which makes me think of a compiler crash due to something missing/missmatching in the setup.
Sounds like a
generics
related message.
A generic declaration bound to some interface is receiving Any in the definition site.
r
I don't know.. I have changed some signatures around to see if it would make any difference, but so far I couldn't make it work 😕
a
@Rafael Costa Hey, did you find a solution?
r
I don't even remember at this point. But lately this sort of issue hasn't happened to me, things seem much more smooth these days 🙂
K 1
a
I'm lucky 😅 UPD: There were an issue with inheritance in my code, fixed
😕 2