尝试对已绑定的 ID 0 使用 @BindView

0 android build gradle android-studio build.gradle

Android Studio 构建失败:

Attempt to use @BindView for an already bound ID 0 on 'mConnectionMessage'


Fragment.java:53: error: Attempt to use @BindView for an already bound ID 0 on 'mConnectionMessage'. 
    ImageView mConnectionImage;
              ^
Run Code Online (Sandbox Code Playgroud)

这是导致问题的代码部分:

    @BindView(R2.id.display_discovery_state_icon)
    ImageView mConnectionImage;
Run Code Online (Sandbox Code Playgroud)

小智 7

将黄油刀版本升级到10.2.1