paris
paris copied to clipboard
Unresolved reference
I am trying to implement Custom View Attributes using Butter Knife Gradle plugin.
<declare-styleable name="DateTimePicker">
<attr name="startTime" format="string" />
<attr name="endTime" format="string" />
</declare-styleable>
@Styleable("DateTimePicker")
class DateTimePicker(..) : View(..) {
...
@Attr(R2.styleable.DateTimePicker_startTime) // Unresolved reference
fun setStartTime(value: String) {
...
}
}
I get the Unresolved reference
error. Is there a way to fix it?
@buraktabn what steps did you follow to setup the Butter Knife Gradle plugin? And I assume you are working inside of a library project, correct? Otherwise you don't need it.