Resource is not a Drawable

前端 未结 5 1732
萌比男神i
萌比男神i 2021-01-16 13:23

This code causes force close exception on Emulator(API 18) and works in ASUS Nexus 7(API 21)



        
5条回答
  •  无人及你
    2021-01-16 13:59

    I was struck with the same problem in the recent app I made. In my case, the problem was I put an image in the folder called drawable-v21, which is not available in older android API.

    The solution is to put your drawable in drawable-...dpi folders too.

提交回复
热议问题