This question already has an answer here:
这个问题在这里已有答案:
- What is the “Ignoring InnerClasses attribute” warning output during compilation? 4 answers
- 编译期间“Ignoring InnerClasses属性”警告输出是什么? 4个答案
I created the 3 layouts HDPI and MDPI and LDPI and I edit the any one of xml file, in console, they show the error:
我创建了3个布局HDPI和MDPI和LDPI,我编辑了任何一个xml文件,在控制台中,它们显示错误:
warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute. (This class was probably produced by a broken compiler.)
警告:忽略没有关联的EnclosingMethod属性的匿名内部类的InnerClasses属性。 (这个类可能是由一个破碎的编译器产生的。)
1 个解决方案
#1
64
It is a common warning when including jar files.
包含jar文件时常见的警告。
Use below line in proguard to avoid warning
在proguard中使用以下行以避免警告
-keepattributes EnclosingMethod
#1
64
It is a common warning when including jar files.
包含jar文件时常见的警告。
Use below line in proguard to avoid warning
在proguard中使用以下行以避免警告
-keepattributes EnclosingMethod