【问题标题】:Bindview not working in eclipseBindview 在 Eclipse 中不起作用
【发布时间】:2018-11-11 03:12:33
【问题描述】:

我从github下载了一个项目,我尝试用eclipse来修改它。本项目导入了butterknife,使用了bindview,但是我导入了butterknife后,还是提示“import butterknife.BindView无法解析”,“BindView无法解析为类型”。有人可以帮帮我吗?

ps。我也希望我可以使用 Android Studio,但它有问题。我在中国,即使我使用 VPN,它仍然告诉我“无法 HEAD”。所以请告诉我如何在eclipse中解决这个问题。

【问题讨论】:

    标签: android eclipse butterknife


    【解决方案1】:

    最后我通过添加 butterknife-annotations.jar 解决了这个问题。用eclipse跑android studio项目真的好难,希望有朝一日可以用android studio。

    【讨论】:

      【解决方案2】:
      dependencies {
      
      implementation 'com.jakewharton:butterknife:8.5.1'
      annotationProcessor 'com.jakewharton:butterknife-implementationr:8.5.1'
      
      }
      

      【讨论】:

      • 谢谢,我已经解决了这个问题,虽然我遇到了另一个......我找不到butterknife-implementationr,是那个butterknife-compiler。无论如何,谢谢你的回答。
      • 你 wlc @SiriusSong
      猜你喜欢
      • 2010-12-20
      • 2013-08-01
      • 2011-09-24
      • 2014-12-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-28
      • 2016-09-02
      相关资源
      最近更新 更多