Android: How to track down the origin of a InflateException?

前端 未结 7 1533
时光取名叫无心
时光取名叫无心 2020-11-27 21:37

While starting my application I get the following warning in Logcat:

04-09 10:28:17.830: WARN/WindowManager(52): Exception when adding starting window
04-09          


        
相关标签:
7条回答
  • 2020-11-27 22:12
    04-09 10:28:17.830: WARN/WindowManager(52): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x2/d=0x1010059 a=-1
    

    That line is the giveaway. The system isn't happy with one of your resources, probably a 'src' resource, probably android:src="@drawable/splash".

    0 讨论(0)
提交回复
热议问题