Я пытаюсь собрать свой проект Android, но когда я перестраиваю, я получаю это сообщение об ошибке:
Процессоры аннотаций должны быть явно объявлены сейчас. Следующие зависимости от пути к классам компиляции содержат процессор аннотаций. Пожалуйста, добавьте их в конфигурацию annotationProcessor.
- butterknife-5.1.2.jar (butterknife-5.1.2.jar)
В качестве альтернативы, установите android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true, чтобы продолжить предыдущее поведение. Обратите внимание, что эта опция устарела и будет удалена в будущем.
Подробнее см. https://developer.android.com/r/tools/annotation-processor-error-message.html.
Это мой build.gradle:
apply plugin: 'com.android.application'
buildscript {
repositories {
google()
mavenCentral()
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.wakeup.xxx"
minSdkVersion 28
targetSdkVersion 28
versionCode 28
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-
core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:25.1.1'
testImplementation 'junit:junit:4.12'
implementation 'com.jjoe64:graphview:4.2.2'
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
}
Может ли кто-нибудь помочь мне, пожалуйста?