android / android/architecture-samples
Execution failed for task ':app:kaptMockDebugKotlin'.
- Dominant language
- Kotlin
- Stars
- 45.8k
- Forks
- 11.9k
- PR merge metrics
- No merged PRs in 30d
Description
branch : todo-mvvm-live-kotlin
I have failed to build the project, probably it has failed to generate appropriate classes for data binding. I am quite curious about this line as well
`/**
* Immutable model class for a Task. In order to compile with Room, we can't use @JvmOverloads to
* generate multiple constructors.
*
* @param title title of the task
* @param description description of the task
* @param id id of the task
*/
@Entity(tableName = "tasks")
data class Task @JvmOverloads constructor(
@ColumnInfo(name = "title") var title: String = "",
@ColumnInfo(name = "description") var description: String = "",
@PrimaryKey @ColumnInfo(name = "entryid") var id: String = UUID.randomUUID().toString()
) {.....}`
if room doesn't work with jvmoverload then why this class is like this.
I am attaching log info below

Contributor guide
Research direction
Check out the `todo-mvvm-live-kotlin` branch and reproduce the `:app:kaptMockDebugKotlin` failure using the attached build logs. Inspect the `Task` entity and the data-binding or Room-related build configuration shown by the failure. Done means the project builds successfully and the kapt-generated classes are produced without this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100