最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Acessing resources using Android Studio resource manager in a Compose Multiplatform - Stack Overflow

programmeradmin6浏览0评论

How do you make resources available in the resource manager UI in a Compose Multiplatform project?

Followed the documentation in Jetbrains Resources Overview for KMP.

I can access the files in the code, but none is listed on the Resources Manager UI.

Also, I added it to my build.gradle:

android {
    namespace = "com.feeltheboard.fo"
    compileSdk = libs.versions.androidpileSdk.get().toInt()

    sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
    sourceSets["main"].res.srcDirs("src/androidMain/res")
    sourceSets["main"].resources.srcDirs("src/commonMain/composeResources")

  • Tried to remove the androidMain/res from the sourceSets, still the same.
发布评论

评论列表(0)

  1. 暂无评论