lingJuan icon indicating copy to clipboard operation
lingJuan copied to clipboard

各种异常,打包不了

Open kbii opened this issue 6 years ago • 6 comments

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.

kbii avatar Apr 07 '18 15:04 kbii

android {
defaultConfig {javaCompileOptions
{ annotationProcessorOptions { includeCompileClasspath = true } }
}
这样可以解决这个异常

kbii avatar Apr 07 '18 15:04 kbii

谢谢,你的建议

CrackgmKey avatar Apr 18 '18 03:04 CrackgmKey

出现最上方的那个问题,是AS版本与butterknife的锅, 这个锅小弟不背哦,哈哈

CrackgmKey avatar Apr 18 '18 05:04 CrackgmKey

我解决了,亲,但是好像又有一个问题,就是商品详情点开就异常

kbii avatar Apr 18 '18 05:04 kbii

什么异常

CrackgmKey avatar Apr 18 '18 09:04 CrackgmKey

我试了一下,没有任何问题,代码是我中午刚才git上下载的,看看是不是自己改了哪里

CrackgmKey avatar Apr 18 '18 09:04 CrackgmKey