https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
e

edenman

08/04/2020, 2:49 AM
I’ve gotten AS into some sort of state where it’s not recognizing that I have a KMP setup, showing all
actual
declaration as an error `The feature "multi platform projects" is experimental and should be enabled explicitly`…anybody else seeing this? AGP 4.2.0-alpha07, kotlin 1.4.0-rc, kotlin AS plugin 1.4.0-rc-release-Studio4.1-2
I tried going back in git history to fix it but no luck. Tried clean build + Invalidate caches and restart, no luck.
Filed https://issuetracker.google.com/issues/162779407 bc it seems like an AS bug to me
a

andylamax

08/04/2020, 3:45 AM
I had this issue since IntelliJ 2020.2 rolled out, when AS moved to that version of IntelliJ, everything broke on my side. When did you start experiencing this?
e

edenman

08/04/2020, 3:47 AM
just today 😕
l

louiscad

08/04/2020, 1:28 PM
You can try setting the
X-multiplatform
compiler arg.
e

edenman

08/04/2020, 7:52 PM
turns out it was an issue with the SQLDelight gradle plugin
lol the issue I filed was closed WontFix (intended behavior)
also iirc i tried adding the flag manually but the pref wouldn’t accept it
and i thought the whole point of the KMP plugin is that it does it for you
l

louiscad

08/05/2020, 5:43 AM
Can you specify what you call the "pref"?
e

edenman

08/05/2020, 7:14 AM
sorry, the preferences pane
and now that i try it again, it does seem to take. getting other issues with `expect`/`actual` not working but it’s a different error
Actual typealias 'Foo' has no corresponding expected declaration
but on all of my androidMain actuals
2 Views