Expected class 'Platform' has no actual declaration in module [my module] for JVM
in the sample app, I assume this is an IDE issue since gradle commands are working fine. I just want to know which Android Studio version I should use for the following settings:
Kotin: 1.7.10
AGP: 7.2.1
Gradle distribution: 7.3.3
Gradle JDK: 11
Android Studio: Dolphin | 2021.3.1 Beta 5 (#AI-213.7172.25.2113.8774922)
Alex Acosta
07/12/2022, 7:40 PM
ios Target works well and Platform class is also defined for androidMain, as I said, running gradle from terminal works fine.
j
Jeff Lockhart
07/13/2022, 4:01 AM
I'm experiencing the same thing, also on AS Dolphin. It's working better than Chipmunk, but still has this issue with "no actual for JVM" errors for common code. I have android and ios targets as well.
Jeff Lockhart
07/13/2022, 4:28 PM
This seems to be the relevant YouTrack issue that's still open. I added a comment to it just now.
a
Alex Acosta
07/13/2022, 4:29 PM
I’ll back you up adding a comment with my settings as well
👍 1
Alex Acosta
07/13/2022, 4:35 PM
as a temporary solution, you can specify this annotation over those
expects
Copy code
@Suppress("NO_ACTUAL_FOR_EXPECT")
j
Jeff Lockhart
07/13/2022, 4:41 PM
Yeah, I had been doing that with my test code before, when this was a bug there. I'm not looking forward to going through all my main code and adding those annotations, since almost every class in my project is affected. Hopefully it'll get a fix soon.