paris icon indicating copy to clipboard operation
paris copied to clipboard

Unresolved reference

Open buraktabn opened this issue 5 years ago • 1 comments

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 avatar Dec 22 '19 01:12 buraktabn

@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.

ngsilverman avatar Apr 01 '20 17:04 ngsilverman