ButterKnife 8.3.0 不生效问题
来源:互联网 发布:linux进程占用cpu过高 编辑:程序博客网 时间:2024/06/07 06:43
ButterKnife在8.3.0下设置后不生效,解决发放如下:
1.在项目的build.gradle中添加一个classpath
dependencies { classpath 'com.android.tools.build:gradle:2.1.2' 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 }
2.在module中添加
dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:24.1.1' compile 'com.jakewharton:butterknife:8.3.0' apply plugin: 'com.neenbedankt.android-apt' apt 'com.jakewharton:butterknife-compiler:8.3.0' compile 'de.greenrobot:eventbus:3.0.0-beta1'}
apply plugin: 'com.neenbedankt.android-apt'要在
apt 'com.jakewharton:butterknife-compiler:8.3.0'
之前,否则会让添加gradle的plugin。 1 0
- ButterKnife 8.3.0 不生效问题
- eclipse butterknife 不生效问题
- ButterKnife 8.0.1不生效的问题
- ButterKnife 8.0.1不生效的问题
- inotify不生效问题
- gitignore 不生效问题
- inotify不生效问题
- setLayoutParams()不生效问题
- .gitignore不生效问题
- hosts配置不生效问题
- jsonpParameterNames不生效问题排查
- string翻译不生效问题
- overflow:hidden不生效问题
- 项目图标不生效问题
- check第二次不生效问题
- .gitignore文件不生效问题
- 输入法切换快捷键不生效的问题
- flex 双击事件不生效问题
- HTTP协议 (五) 代理
- 保护模式中断
- C#入门10.1——接口的声明
- 【Android】Android缩放图片大小,保存图片
- leetcode_c++:树:Maximum Depth of Binary Tree(104)
- ButterKnife 8.3.0 不生效问题
- 神州顺利办发的红包真的好使吗?
- FreeBSD下vsftpd配置
- 结构体
- 如何绘制caffe训练过程中的loss和accurary的曲线??
- Linux防火墙
- c语言:读取文件中的指定内容
- 基于vueJs框架的翻页组件
- android通过设置ctl.start=bootanim无法启动开机画面的问题