JakeWharton/u2020

Error:(135, 54) error: Attempt to use @InjectView for an already injected ID 2131099650 on 'content'. (com.jakewharton.u2020.ui.debug.DebugAppContainer.scalpelFrameLayout)

Aexyn opened this issue · 7 comments

The app works well, but on upgrading butterknife to 6.0.0 , it throws this runtime error

The error tells you the problem. Just inject it once.

@InjectView(R.id.debug_drawer_layout) DrawerLayout drawerLayout;
@InjectView(R.id.debug_content) ViewGroup content;

@InjectView(R.id.madge_container) MadgeFrameLayout madgeFrameLayout;
@InjectView(R.id.debug_content) ScalpelFrameLayout scalpelFrameLayout;

@InjectView(R.id.debug_contextual_title) View contextualTitleView;
@InjectView(R.id.debug_contextual_list) LinearLayout contextualListView;
.....

With due respet, this is the code I get in "DebugAppContainer.java" on line 130 and 133, and upon updating to 6.0.0, I got that error.

The file I am referring is this one
https://github.com/JakeWharton/u2020/blob/master/src/debug/java/com/jakewharton/u2020/ui/debug/DebugAppContainer.java

Yeah I understand. I'm saying if you are updating Butter Knife then you also need to fix it. I'll get around to updating this repo eventually but for now there's no harm on leaving it on version 5.

Sure. I am already back to 4.0.1 . Just reporting the issue :)

Cool, thanks. I have updating libraries on my "to do" list but it's behind some other things.

Thank you for being Awesome dev 👍 👌

This is done.