解决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配置的问题就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持毛票票。
热门推荐
10 女神节医生祝福语简短
11 海南考试祝福语结婚简短
12 感谢再见的祝福语简短
13 中考家长祝福语简短励志
14 难过生日祝福语简短
15 爸爸生日祝福语搞笑简短
16 小托班祝福语简短
17 心媳妇生日祝福语简短
18 平安果祝福语简短霸气