android - 这是什么警告: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute

标签 android android-layout

我创建了 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.)

最佳答案

这是包含 jar 文件时的常见警告。

在proguard中使用下面的行来避免警告

-keepattributes EnclosingMethod

关于android - 这是什么警告: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17141832/

相关文章:

java - 使用setter的有效方法

android - 了解 measureWithLargestChild : Why breaks the layout?

java - 不幸的是,(应用程序名称)已停止。 eclipse /安卓

android - 为什么键盘出现在 TabBar 之后?

android - 定义自定义颜色变量

android - 使布局在所有设备上看起来都不错

java - 无法获取资源

Java 事件监听与 AS3 的比较

Android FFMPEG 无法识别文件 : protocol

android - AAR 缺少我的依赖项