美文网首页
Butterknife的学习使用

Butterknife的学习使用

作者: _春夏秋冬 | 来源:发表于2018-08-27 09:44 被阅读0次

    一、配置

    GitHub地址:https://github.com/JakeWharton/butterknife
    官网推荐方式:

    第一步:Download

    dependencies {
      implementation 'com.jakewharton:butterknife:8.8.1'
      annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
    }
    

    第二步:添加插件

    dependencies {
            ......
            classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.1'  //添加这一行
            
    
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    

    apt代码托管:https://bitbucket.org/hvisser/android-apt
    [android-apt]:https://www.jianshu.com/p/2494825183c5
    你必须知道的APT、annotationProcessor、android-apt、Provided、自定义注解:https://blog.csdn.net/xx326664162/article/details/68490059/
    Android Butterknife 8.4.0 使用方法总结:https://www.cnblogs.com/zhaoyanjun/p/6016341.html
    Android Studio 结合 ButterKnife Zelezny 高效使用 Butterknife(黄油刀):https://blog.csdn.net/qq_35070105/article/details/71577291

    相关文章

      网友评论

          本文标题:Butterknife的学习使用

          本文链接:https://www.haomeiwen.com/subject/goqziftx.html