Spa*_*tta 5 android android-studio-3.0
尝试执行我的项目时出现以下错误:
错误:任务“:app:javaPreCompileDebug”执行失败。
现在必须显式声明注释处理器。发现编译类路径上的以下依赖项包含注释处理器。请将它们添加到annotationProcessor配置中。- butterknife-7.0.1.jar (com.jakewharton:butterknife:7.0.1) 或者,设置 android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true 以继续之前的行为。请注意,此选项已弃用,并将在将来删除。 有关更多详细信息,请参阅 https://developer.android.com/r/tools/annotation-processor-error-message.html 。
请不要将此问题标记为重复,因为其他问题对此进行了重新评级,这里是针对 lombok,我没有使用它。
正如错误所示,您需要annotationProcessor
在应用程序中使用 build.gradle。Afaik,您需要将 ButterKnife 库升级到版本8.8.1。你需要使用这样的东西:
dependencies {
compile 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
}
Run Code Online (Sandbox Code Playgroud)
请检查Android studio 3.0 butterknife 错误问题以了解详细信息。
归档时间: |
|
查看次数: |
15909 次 |
最近记录: |