Setting Explict Annotation Processor

前端 未结 9 1207
自闭症患者
自闭症患者 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 09:01

    Add this code to your gradle app

    defaultConfig{
        javaCompileOptions {
            annotationProcessorOptions {
                includeCompileClasspath true
            }
        }
    }
    

    I found the solution here https://github.com/JakeWharton/butterknife/issues/908

提交回复
热议问题