从findViewById
我的痛苦后,我决定用 但不错的错误告诉我,你永远不会UE的ButterKnife 这里是错误ButterKnife首次使用错误
@ InjectView注解类错误地在Android框架包。
为什么?我的错误在哪里?是gradle dependency
错?
我看到this post但它并没有帮助我
gradle这个文件(模块)
apply plugin: 'com.neenbedankt.android-apt'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
dependencies {
compile 'com.jakewharton:butterknife:8.0.1'
apt 'com.jakewharton:butterknife-compiler:8.0.1'
}
在这一行
@BindView(R.id.button_birth_date)
private Button buttonBirthDate;
和其他成员变量(视图)的错误使用@BindView
什么是您的应用程序包名称? – USKMobility
也添加你的build.gradle – USKMobility
'package =“android.alcode.com.material”'from manifest文件“ –