從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文件「 –