How to use Android resources in an `androidMain` s...
# multiplatform
a
How to use Android resources in an
androidMain
source set? I tried both
res
and
resources
folder names, the last one seems recognized but resources are not accessible (nor from the code or from e.g. layouts).
k
did you set the resource
srcDir
on the Android plugin?
a
Perhaps no, is there a documentation?
k
Copy code
android {
    sourceSets {
        getByName("main") {
            manifest.srcFile("src/androidMain/AndroidManifest.xml")
            java.srcDirs("src/androidMain/kotlin")
            res.srcDirs("src/androidMain/res")
        }
a
Wow, thank you so much, it works
🍻 2