Ismail BENABDALLAH
12/02/2025, 10:17 AMKMP/CMP project, I have a module that contains resources (images and strings) correctly placed in the composeResources folder.
This module is declared as a library using the com.android.kotlin.multiplatform.library plugin.
When I run the application, it crashes with the following error:
Missing resource with path: composeResources/com.myaproject.resources/drawable/compose-multiplatform.xml
However, if I replace the com.android.kotlin.multiplatform.library plugin with the com.android.library plugin, everything works fine.
Do you have an explanation for this behavior? Could I be missing a specific configuration related to the KMP/CMP plugin or to resource handling in this setup?Chrimaeon
12/02/2025, 12:11 PMMari-Mai HENAFF
12/02/2025, 3:36 PMSudarshan
12/03/2025, 6:58 PMIsmail BENABDALLAH
12/03/2025, 7:22 PMIsmail BENABDALLAH
12/04/2025, 9:01 AMandroidResources { enable = true } to the androidLibrary declaration. More details are in the link provided by @Sudarshan. ⬆️