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
leandro
08/23/2023, 9:12 AM
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
Zoltan Demant
08/23/2023, 9:17 AM
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
leandro
08/23/2023, 9:33 AM
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
Colton Idle
08/23/2023, 12:44 PM
sometimes i have this problem and restart AS and it goes away. 🤷
z
Zoltan Demant
08/23/2023, 3:04 PM
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!