ProGuard: Warning: butterknife.internal.InjectViewProcessor:

匿名 (未验证) 提交于 2019-12-03 02:51:02

问题:

I faced this error during generating apk using idea13

ProGuard:  Warning: butterknife.internal.InjectViewProcessor: can't find superclass or interface javax.annotation.processing.AbstractProcessor 

回答1:

Even though you didn't post an actual question, I'm assuming you want that warning gone.

Add the following lines to your ProGuard configuration:

-dontwarn butterknife.internal.** -keep class **$$ViewInjector { *; } -keepnames class * { @butterknife.InjectView *;} 

source



回答2:

If anyone does face an issue with Proguard and Butterknife, use the following given at http://jakewharton.github.io/butterknife/index.html#proguard

-keep class butterknife.** { *; } -dontwarn butterknife.internal.** -keep class **$$ViewBinder { *; }  -keepclasseswithmembernames class * {     @butterknife.* <fields>; }  -keepclasseswithmembernames class * {     @butterknife.* <methods>; } 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!