Hi, I previously had a KMM project targeting Andro...
# multiplatform
g
Hi, I previously had a KMM project targeting Android and JS. I removed the JS target, and now all of my
expect
and
actual
declarations are showing errors. The compiler says:
Copy code
No actual for expect declaration in module(s): main
I already have the
actual
implementations in
androidMain
Does this issue occur because the project now only targets Android?
v
I am also facing similar issue, were you able to solve this? Can anyone help ?
t
if you have only one target -
common
code essentially becomes platform code (I know it is confusing) and no
expect/actual
approach is possible
v
Ah, i see So if i want to get started with a single target for now and add new targets in the future, its not possible
I would have to add some other target just for it to work