Setting Explict Annotation Processor

前端 未结 9 1225
自闭症患者
自闭症患者 2021-01-30 08:25

I am attempting to add a maven repository to my Android Studio project. When I do a Gradle project sync everything is fine. However, whenever I try to build my apk, I get this e

9条回答
  •  滥情空心
    2021-01-30 08:56

    In the build.gradle(module app)

    1. apply the plugin:

       apply plugin: 'com.jakewharton.butterknife'
      
    2. Add the following lines in the dependencies section:

       annotationProcessor 'com.jakewharton:butterknife-compiler:8.7.0'
       implementation 'com.jakewharton:butterknife:8.7.0'
      

    in the build.gradle(Project:projectName), add the classPath in the dependencies like this :

        classpath 'com.jakewharton:butterknife-gradle-plugin:8.4.0'
    

    It will fix this issue. In case if not then add maven:

     maven {
     url 'https://maven.google.com'
     }
    

提交回复
热议问题