RocooFix icon indicating copy to clipboard operation
RocooFix copied to clipboard

ButterKnife引入后产生错误

Open jiantao88 opened this issue 10 years ago • 2 comments

错误: 服务配置文件不正确, 或构造处理程序对象javax.annotation.processing.Processor: Provider butterknife.internal.ButterKnifeProcessor could not be instantiated: java.lang.NoClassDefFoundError: com/dodola/rocoo/Hack时抛出异常错误 :app:compileDebugJavaWithJavac FAILED Error:Execution failed for task ':app:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

jiantao88 avatar Jun 26 '16 14:06 jiantao88

@jiantao88 这个问题已经修复

dodola avatar Jul 04 '16 02:07 dodola

请问这个问题怎么修复的?我的配置代码已经通过编译,但是执行的时候就报这个错误。能告诉我怎么解决嘛? ` APPLevel(build.gradle) apply plugin: 'android-apt'

compile 'com.jakewharton:butterknife:8.0.1' apt 'com.jakewharton:butterknife-compiler:8.0.1'

ProjectLevel(build.gradle)

dependencies { classpath 'com.android.tools.build:gradle:2.2.3' classpath 'com.jakewharton:butterknife-gradle-plugin:8.0.1' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } `

David-Kuper avatar Mar 06 '17 07:03 David-Kuper