解決Android Studio 3.0 butterknife:7.0.1配置的問題
網(wǎng)上教程7.0大多數(shù)配置是這樣compile ‘com.jakewharton:butterknife:7.0.1' ,不知道他們用的Android Studio是多少版本,我用的3.0并沒有成功,報錯如下:
Error:Execution failed for task ‘:app: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.
解決辦法:加上 annotationProcessor ‘com.jakewharton:butterknife:7.0.1'即可解決
以上這篇解決Android Studio 3.0 butterknife:7.0.1配置的問題就是小編分享給大家的全部內(nèi)容了,希望能給大家一個參考,也希望大家多多支持腳本之家。
- Android用注解與反射實(shí)現(xiàn)Butterknife功能
- Android中butterknife的使用與自動化查找組件插件詳解
- 詳解Android Studio安裝ButterKnife插件(手動安裝)
- Android Studio使用ButterKnife和Zelezny的方法
- Android Kotlin環(huán)境使用ButterKnife的方法
- Android Studio中ButterKnife插件的安裝與使用詳解
- Android注解使用之ButterKnife 8.0詳解
- Android注解ButterKnife的基本使用
- Android?ButterKnife依賴注入框架使用教程
相關(guān)文章
android實(shí)現(xiàn)圖片閃爍動畫效果的兩種實(shí)現(xiàn)方式(實(shí)用性高)
本文通過兩種方法給大家講解了android實(shí)現(xiàn)圖片閃爍動畫效果,實(shí)用性非常高,對這兩種方法感興趣的朋友一起通過本文學(xué)習(xí)吧2016-09-09
Android判斷服務(wù)是否運(yùn)行及定位問題實(shí)例分析
這篇文章主要介紹了Android判斷服務(wù)是否運(yùn)行及定位問題,以實(shí)例形式較為詳細(xì)的分析了Android判斷服務(wù)運(yùn)行狀態(tài)及獲取經(jīng)緯度的相關(guān)實(shí)現(xiàn)技巧,具有一定參考借鑒價值,需要的朋友可以參考下2015-09-09
Android自定義View實(shí)現(xiàn)打鉤動畫功能
本篇文章通過實(shí)例給大家分享了Android自定義View實(shí)現(xiàn)打鉤動畫功能的過程和代碼分享,有興趣需要的學(xué)習(xí)下吧。2017-12-12
Android基準(zhǔn)配置文件Baseline?Profile方案提升啟動速度
這篇文章主要為大家介紹了Android基準(zhǔn)配置文件Baseline?Profile方案提升啟動速度示例詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2023-02-02

