发现注释元素公共抽象int [] butterknife.OnClick.value()的类型错误的数据

时间:2018-10-04 15:15:33

标签: android

我正在关注Android教程; here is是我在学习本教程时遇到的上一个错误。

在接近本教程的结尾时,出现以下错误:

  

由以下原因引起:java.lang.annotation.AnnotationTypeMismatchException:为注释元素公共抽象int [] butterknife.OnClick.value()找到的类型不正确的数据(找到的类型为int []的数据)

我不知道该说些什么,所以我将在此处粘贴应用Gradle文件:

apply plugin: 'com.android.application'

android {
compileSdkVersion 23

android.applicationVariants.all { variant ->
    variant.outputs.all { output ->
        def fileName = "${project.name}_${output.baseName}-${variant.versionName}.apk"
        outputFileName = new File(output.outputFile.parent, fileName).getName()
    }
}

lintOptions {
    abortOnError false
}

defaultConfig {
    applicationId "com.tomsapp.mulberry"
    minSdkVersion 17
    targetSdkVersion 23
    versionCode 1
    versionName "1.0.0"
    javaCompileOptions {
        annotationProcessorOptions {
            includeCompileClasspath true
        }
    }
}
buildTypes {
    release {
        minifyEnabled true
        shrinkResources true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

repositories {
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(path: ':licensing')

implementation('com.github.afollestad.material-dialogs:core:0.8.5.3@aar') {
    transitive = true
}
implementation('com.github.afollestad:drag-select-recyclerview:0.3.1@aar') {
    transitive = true
}

implementation 'com.github.afollestad:bridge:3.1.1'
implementation 'com.github.afollestad:sectioned-recyclerview:0.2.0'
implementation 'com.github.afollestad:assent:0.2.0'
implementation 'com.github.afollestad:inquiry:2.0.1'

//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:23.1.1'
implementation 'com.android.support:recyclerview-v7:23.1.1'
implementation 'com.android.support:support-v4:23.1.1'
implementation 'com.android.support:design:23.1.1'
implementation 'com.android.support:cardview-v7:23.1.1'
implementation 'com.android.support:palette-v7:23.1.1'

implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.github.florent37:glidepalette:1.0.6@aar'

implementation 'com.jakewharton:butterknife:7.0.1'
implementation 'com.google.android.apps.muzei:muzei-api:2.0'
implementation 'com.makeramen:roundedimageview:2.2.1'
}

我在此链接中寻求解决方案,但是其中提到的解决方案在我的代码中产生了新错误-ButterKnife 8.0.1 not working

0 个答案:

没有答案
相关问题