Can't convert to color: type=0x2 error when inflating layout in fragment but only on Samsung Galaxy and Note 4

后端 未结 4 1925
予麋鹿
予麋鹿 2020-12-05 17:25

I am working on a simple app with an activity and i use fragments.One screen with some elements. When i compile and run the app it works fine, except on Samsung Galaxy s3 an

4条回答
  •  时光说笑
    2020-12-05 17:47

    I had the same problem on API 10 devices and it was caused by using theme for API 11+ (from appcompat). For quick solution you may find the following themes declaration in styles.xml