Using Butter Knife library for view injection

后端 未结 3 1660
暗喜
暗喜 2020-12-15 13:14

What i am doing::

  1. I am trying to run butter knife library for my simple project
  2. I have followed all the steps in documentation, but s
3条回答
  •  旧巷少年郎
    2020-12-15 13:23

    Follow this Steps [ into Eclipse IDE ]:

    1)Right click on your project withIn Package Explorer. Got to Java Compiler --> Annotation Processing and check the Enable project specific settings.

    2)Expand the Annotation Processing section and select Factory Path. Check Enable project specific settings and then click Add JARs Navigate to the project's libs/ folder and select the ButterKnife jar.

    3)Click Ok to save the new settings. Eclipse will ask you to rebuild your project to which you should click Yes.

    Note: Make sure that the .apt_generated/ folder is in your project root. It should contain files like YOURACTIVITY$$ViewInjector.java. If these files are not present trigger a clean build by selected Project → Clean. This folder and files should not be checked into revision control.

    Reference -> Set up manual configuration for ButterKnife annotations

提交回复
热议问题