Android Studio使用Butterknife时出现空指针问题解决

来源:互联网 发布:搜狗排名优化 编辑:程序博客网 时间:2024/06/06 09:17

主要问题就是导入时配置没有完全,我们只要修改gradle文件即可(目前butterknife最新版本为8.4.0):

1.apply plugin: 'com.neenbedankt.android-apt'2.buildscript {    repositories {        mavenCentral()    }    dependencies {        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'    }}3.compile 'com.jakewharton:butterknife:8.4.0'apt 'com.jakewharton:butterknife-compiler:8.4.0'

这里写图片描述

阅读全文
0 0
原创粉丝点击