欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

androidstudio3.0使用butterknife報錯解決的解決方法

 更新時間:2018年01月03日 11:39:11   作者:曉果博客  
這篇文章主要介紹了androidstudio3.0使用butterknife報錯解決的解決方法,非常具有實用價值,需要的朋友可以參考下

問題

在添加butterKnife依賴的時候出現(xiàn)如下錯誤:

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
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.

修改

android {
  ...
  defaultConfig {
    ...
    javaCompileOptions {
      annotationProcessorOptions {
        includeCompileClasspath = true 
      }
    }
  }
}

添加上面配置就好…………….

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論