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

Harnick

11/24/2023, 1:47 PM
This is probably silly, but I've recently been having issues with Android Studio and the paths of my source-sets. When attempting to add missing actual declarations through AS, my source-sets include the parent folders as part of their filenames. JVM declarations show as
<FILE NAME>.<PROJECT NAME>.shared.desktop.kt
, and Android declarations are somehow worse, showing as
<FILE NAME>.<PARENT DIRECTORY>.<PROJECT NAME>.shared.main.kt
. I also notice my Android declaration's filenames are now
main
instead of
android
, as they used to be. In IDEA, my desktop declarations are perfectly fine however, so I can only assume this is an Android Studio issue. How can I fix this? It makes creating actual declarations a massive pain. I've attached a screenshot of my IDE as an example, along with my project's
build.gradle.kts
. Hopefully it may be of use.
2 Views