Hi all, I am getting `Expected class 'Platform' ha...
# multiplatform
a
Hi all, I am getting
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)
ios Target works well and Platform class is also defined for androidMain, as I said, running gradle from terminal works fine.
j
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.
This seems to be the relevant YouTrack issue that's still open. I added a comment to it just now.
a
I’ll back you up adding a comment with my settings as well
👍 1
as a temporary solution, you can specify this annotation over those
expects
Copy code
@Suppress("NO_ACTUAL_FOR_EXPECT")
j
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.