
网上教程7.0大多数配置是这样compile ‘com.jakewharton:butterknife:7.0.1' ,不知道他们用的AndroID Studio是多少版本,我用的3.0并没有成功,报错如下:
Error:Execution Failed for task ‘:app:java@R_46_3013@eBUG'.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.
解决办法:加上 annotationProcessor ‘com.jakewharton:butterknife:7.0.1'即可解决
以上这篇解决AndroID Studio 3.0 butterknife:7.0.1配置的问题就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持编程小技巧。
总结以上是内存溢出为你收集整理的解决Android Studio 3.0 butterknife:7.0.1配置的问题全部内容,希望文章能够帮你解决解决Android Studio 3.0 butterknife:7.0.1配置的问题所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)