Android开发, 如何看logcat

有如下log:
 
android.view.InflateException: Binary XML file line #2:
Error inflating class com.hankkin.SelectMutiImgDemo.view.SquareLayout
 
at com.king.photo.adapter.PictureAdapter.getView(PictureAdapter.java:65)
 
思路:
看logcat时,要注意到你比较熟悉的信息,比如:
[Binary XML file line #2]、[adapter.PictureAdapter.getView(PictureAdapter.java:65)]
 从这里面你都能找到蛛丝马迹,问题就迎刃而解了
posted @ 2016-11-11 18:14  8995  阅读(350)  评论(0编辑  收藏  举报