Android-错误异常问题-InflateException

今天在三星GT-p5110 上跑个程序crash,而且其他机器正常。原因是InflateException,看代码中有个特别的属性,paddingStart 。

google了一下,原因是:

For some reason Android is selecting the wrong XML file to use, which contains the attributes "paddingStart" & "paddingEnd" instead of "paddingLeft" & "paddingRight". Using the former file causes a crash on 4.1 devices due to some conflict between Samsung's support for RTL and Android's support for RTL (apparently). Not sure why it's happening, assigning to Kibeom to debug.

嗯,应该是三星系统的bug。解决方法自然是去掉这个属性了。改用paddingleft。


你可能感兴趣的:(android,异常问题)