diff --git a/easylauncher/src/main/kotlin/com/project/starter/easylauncher/plugin/EasyLauncherPlugin.kt b/easylauncher/src/main/kotlin/com/project/starter/easylauncher/plugin/EasyLauncherPlugin.kt index 7b8701d5..360a0128 100644 --- a/easylauncher/src/main/kotlin/com/project/starter/easylauncher/plugin/EasyLauncherPlugin.kt +++ b/easylauncher/src/main/kotlin/com/project/starter/easylauncher/plugin/EasyLauncherPlugin.kt @@ -130,7 +130,7 @@ class EasyLauncherPlugin : Plugin { .toCreate(com.android.build.gradle.internal.scope.InternalArtifactType.GENERATED_RES) } else { // legacy way to hook up the plugin - val generatedResDir = buildDir.resolve("generated/easylauncher/res/${variant.name}") + val generatedResDir = layout.buildDirectory.map { it.dir("generated/easylauncher/res/${variant.name}") } task.configure { it.outputDir.set(generatedResDir) } project.afterEvaluate { val android = extensions.getByName("android") as BaseExtension