Hi
I'm inflating a custom view that extends FrameLayout.
Some code:
@InjectView(R.id.txt_title)
TextView mTxtTitle;
@Override
protected void onFinishInflate() {
super.onFinishInflate();
ButterKnife.inject(this,this);
}
It worked on different projects, but not on this one. And I see no difference.
I looked at issue 62 but running the clean task doesn't help.
Any pointers where I can look or is this a bug ?
Thanks !
Christophe
maybe you can share the error as well.
java.lang.annotation.AnnotationTypeMismatchException: Incorrectly typed data found for annotation element public abstract int butterknife.InjectView.value() (Found data of type int)
But I found it, its not a bug. My mistake.
I imported the wrong R class.
My stupid fault.
Ah! it can happen, it's not stupid. Glad you resolved it though.
On Feb 7, 2014 1:19 AM, "christophecommon" [email protected] wrote:
Closed #99 https://github.com/JakeWharton/butterknife/issues/99.
Reply to this email directly or view it on GitHubhttps://github.com/JakeWharton/butterknife/issues/99
.
I got the same problem, there's no tips about the wrong import error,hope you can fix it.
We get the same issue, thanks for posting about change R class
Fixed my issues as well. Great find with importing the wrong R class. So silly this is still an issue in Android...
Most helpful comment
java.lang.annotation.AnnotationTypeMismatchException: Incorrectly typed data found for annotation element public abstract int butterknife.InjectView.value() (Found data of type int)
But I found it, its not a bug. My mistake.
I imported the wrong R class.
My stupid fault.