lingJuan
lingJuan copied to clipboard
各种异常,打包不了
Error:Execution failed for task ':lingjuaner:javaPreCompileDebug'.
Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration. - butterknife-7.0.1.jar (com.jakewharton:butterknife:7.0.1) Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future. See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.
android {
defaultConfig {javaCompileOptions
{ annotationProcessorOptions { includeCompileClasspath = true } }
}
这样可以解决这个异常
谢谢,你的建议
出现最上方的那个问题,是AS版本与butterknife的锅, 这个锅小弟不背哦,哈哈
我解决了,亲,但是好像又有一个问题,就是商品详情点开就异常
什么异常
我试了一下,没有任何问题,代码是我中午刚才git上下载的,看看是不是自己改了哪里