Why does it say `androidMain *[main]*` instead of ...
# multiplatform
z
Why does it say
androidMain *[main]*
instead of just
androidMain
like the other sources?
r
Usually this is the case when the folder name does not match the assigned name inside the Gradle file. Most likely,
androidMain
is the name of the folder whereas the Gradle file will simply say
main
.
l
I think it's because the android target has a special treatment for kmp. I wonder if this will be automatically fixed once kotlin 2.0 is released and the android team inside google claims the android() target name
z
I recall something along those lines @leandro, i.e. the need to use
androidTarget()
instead of
android()
until the "migration" has happened. I guess thats it?
l
I suppose this problem existed even before this migration, but I would hope that this is fixed once Android behaves like a regular target like the others (js browser, iosx64 etc etc). As of now, android is handled internally very different
💪🏽 1
c
sometimes i have this problem and restart AS and it goes away. 🤷
z
Good to know, although seems a bit alarming that it comes and goes 😅 No difference for me, but Im glad you can get rid of it at times at least!