android studio 3.1 Warning: The rule `-keep public class *extends java.lang.annotation.Annotation {

问题: i recently upgraded android studio but im not able to find the source of the following issue reported in android studio 3.1: Warning: The rule `-keep public class *extend...

问题:

i recently upgraded android studio but im not able to find the source of the following issue reported in android studio 3.1:

Warning: The rule `-keep public class *extends java.lang.annotation.Annotation {

enter image description here

enter image description here

the warning seems to be cut off perhaps and missing information. but it looks like a proguard issue although i am getting this warning when building debug variant. i checked my proguard files and i dont have a line that matches that exactly. i searched the entire project. any ideas on the root cause ?


回答1:

You should be able to keep the mouse hovered over the line and the full text should show up.

But for the issue, i believe it might be because that Proguard line is not valid.
There should be a space between '*' and 'extends'.

And also, you can't extend an annotation? So the line makes no sense anyways.

If you wanted to keep all annotations on classes, then use this:

-keepattributes *Annotation*
  • 发表于 2018-03-29 04:29
  • 阅读 ( 1313 )
  • 分类:sof

0 条评论

请先 登录 后评论
不写代码的码农
网文小编

0 篇文章

作家榜 »

  1. 网文小编 0 文章
返回顶部
部分文章转自于网络,若有侵权请联系我们删除