diff --git a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/AndroidResources.kt b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/AndroidResources.kt index ac36cf5bb38..dc1d177d4ac 100644 --- a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/AndroidResources.kt +++ b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/AndroidResources.kt @@ -53,7 +53,9 @@ internal fun Project.configureAndroidComposeResources( } //https://issuetracker.google.com/348208777 - variant.sources.assets?.addStaticSourceDirectory(variantAssetsDir.get().asFile.path) + val staticDir = variantAssetsDir.get().asFile + staticDir.mkdirs() + variant.sources.assets?.addStaticSourceDirectory(staticDir.path) tasks.configureEach { task -> if (task.name == "merge${variant.name.uppercaseFirstChar()}Assets") { task.dependsOn(copyVariantAssets)