美文网首页
框架整理系列二(butterknife引用)

框架整理系列二(butterknife引用)

作者: I_Gisvity | 来源:发表于2017-04-15 09:15 被阅读0次

引用

  1. Project.gradle中增加

    classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'

如:

buildscript {
    repositories {
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:2.3.1'
    classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
    }
}
  1. model.gralde中增加
apply plugin: 'com.neenbedankt.android-apt'



//butterknifeD
compile 'com.jakewharton:butterknife:8.4.0'

apt 'com.jakewharton:butterknife-compiler:8.4.0
  1. 调用

相关文章

网友评论

      本文标题:框架整理系列二(butterknife引用)

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