An annotated framework for Android development Butterknife settings in ADT

Source: Internet
Author: User

When using the annotated frame Butterknife, import into ADT, the view of the annotated in the result item is invalid, such as clicking button and so on without any reaction.

Then on Butterknife's official website to see the solution: http://jakewharton.github.io/butterknife/ide-eclipse.html

1. Because you are using ADT, the Java compiler→annotation processing and check "Enable Project specific Settings" in the setup of the project .

2. Expand annotation processing and select Factory Path. Tick "Enable Project specific Settings" and click Add JARs ..., select the Butterknife jar package

3. Then click OK to save the settings, and eclipse will ask if you want to rebuild the new project and click Yes.

4. Make sure that you have a. apt_generated folder in the root directory of your project, and that the folder contains files such as youractivity$ $ViewInjector. java.

5. Make sure that Java version is a minimum of 1.6.

An annotated framework for Android development Butterknife settings in ADT

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.