Kotlin / Kotlin/Storytale

Running androidStories run fails with ':generateResourceAccessorsForCommonStories' not found in project

Open
#82 8 comments 2 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
686
Forks
21
PR merge metrics
No merged PRs in 30d

Description

Running `./gradlew androidStoriesRun` for a multiplatform android app, I noticed that the code calls a task that does not exist anywhere in the repo.

https://github.com/Kotlin/Storytale/blob/573fdf2387a46823e838c11e045464660ada5038/modules/gradle-plugin/src/main/kotlin/org/jetbrains/compose/storytale/plugin/AndroidMultiplatformTask.kt#L76

```kotlin
target.compilations
.matching { it.name == StorytaleGradlePlugin.STORYTALE_EXEC_SUFFIX }
.configureEach {
associateWith(target.compilations.getByName("debug"))
compileTaskProvider.configure {
dependsOn(generatorTask)
dependsOn(":generateResourceAccessorsForCommonStories") <------ this does not seem to exist anywhere
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in modules/gradle-plugin/src/main/kotlin/org/jetbrains/compose/storytale/plugin/AndroidMultiplatformTask.kt around line 76 and inspect how androidStoriesRun configures compilation dependencies. Check whether :generateResourceAccessorsForCommonStories is defined anywhere, then verify that running ./gradlew androidStoriesRun no longer fails because of the missing task.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.