AAPT: error: attribute android:singleline not found.
时间: 2024-06-01 17:12:16 浏览: 205
AAPT: error: resource attr/** (aka com.**.app:attr/**) not found.
5星 · 资源好评率100%
This error occurs when you try to use the attribute "android:singleline" in your XML code, but it is not recognized by the Android Asset Packaging Tool (AAPT).
This attribute was deprecated in API level 26 and removed in API level 28. Instead, you should use the "android:maxLines" attribute with a value of "1" to achieve the same effect.
To fix this error, replace "android:singleline" with "android:maxLines="1"" in your XML code.
阅读全文