Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

各种异常,打包不了 #3

Open
kbii opened this issue Apr 7, 2018 · 6 comments
Open

各种异常,打包不了 #3

kbii opened this issue Apr 7, 2018 · 6 comments

Comments

@kbii
Copy link

kbii commented Apr 7, 2018

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
Copy link
Author

kbii commented Apr 7, 2018

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

@CrackgmKey
Copy link
Owner

谢谢,你的建议

@CrackgmKey
Copy link
Owner

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

@kbii
Copy link
Author

kbii commented Apr 18, 2018

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

@CrackgmKey
Copy link
Owner

什么异常

@CrackgmKey
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants