Using Butter Knife library for view injection

后端 未结 3 1659
暗喜
暗喜 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:31

    IntelliJ IDEA — If your project uses an external configuration (like a Maven pom.xml) then annotation processing should just work.

    Follow these steps :

    1. Open IDEA's preference: File -> Other Settings -> Default Settings
    2. Navigate to Compiler -> Annotation Processors Then Check Enable annotation processing

    Reference -> Set up manual configuration for ButterKnife annotations

    Update 30-6-2015

    Follow These Steps for Intellij IDEA 14.0 :

    1. Open IDEA's preference: File -> Settings or click ctl + alt + s

    2. Navigate to Build, Execution and deployment -> Compiler -> Annotation Processors and Choose your project Then Check Enable annotation processing

提交回复
热议问题