Android:shape 不允许使用整数类型

Android:shape integer type is not allowed

我反编译了一个 APK(免责声明: 供个人使用,没有做任何非法的事情)除了一些奇怪的 unknown_attr 值外,还有一些属性,例如 layout_widthlayout_heightandroid:shape 的值为整数。

如:<shape android:shape="0"></shape>android:layout_width="-1"

但是,在构建 APK 时,android 工作室会抛出不允许整数类型的错误。

为什么反编译出来的APK可以整型,但是重新编译APK的时候突然不能

我的设置是否配置有误?

there is no misconfiguration in my studio settings that (when fixed) would allow me to build an APK with those integer values?

没有。这是无效的 ShapeDrawable 资源,您可以通过阅读 the documentation.

来判断

你的问题出在你的反编译器上。