解决Android Studio 3.0 butterknife:7.0.1配置的问题
网上教程7.0大多数配置是这样compile‘com.jakewharton:butterknife:7.0.1',不知道他们用的AndroidStudio是多少版本,我用的3.0并没有成功,报错如下:
Error:Executionfailedfortask‘:app:javaPreCompileDebug'. Annotationprocessorsmustbeexplicitlydeclarednow.Thefollowingdependenciesonthecompileclasspatharefoundtocontainannotationprocessor.PleaseaddthemtotheannotationProcessorconfiguration. -butterknife-7.0.1.jar(com.jakewharton:butterknife:7.0.1) Alternatively,setandroid.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath=truetocontinuewithpreviousbehavior.Notethatthisoptionisdeprecatedandwillberemovedinthefuture. Seehttps://developer.android.com/r/tools/annotation-processor-error-message.htmlformoredetails.
解决办法:加上annotationProcessor‘com.jakewharton:butterknife:7.0.1'即可解决
以上这篇解决AndroidStudio3.0butterknife:7.0.1配置的问题就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持毛票票。