android studio中的logcat怎么看出哪行代码出错了,哪出错了,比如如下,教我一下哈
androidstudio中的logcat怎么看出哪行代码出错了,哪出错了,比如如下,教我一下哈哈04-2608:13:43.39411765-11765/com.exa...
android studio中的logcat怎么看出哪行代码出错了,哪出错了,比如如下,教我一下哈哈
04-26 08:13:43.394 11765-11765/com.example.dell1.myapplication E/dalvikvm﹕ >>>>> Normal User
04-26 08:13:43.394 11765-11765/com.example.dell1.myapplication E/dalvikvm﹕ >>>>> com.example.dell1.myapplication [ userId:0 | appId:10277 ]
04-26 08:13:43.944 11765-11765/com.example.dell1.myapplication E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.example.dell1.myapplication, PID: 11765
java.lang.NullPointerException
at com.example.dell1.myapplication.FruitAdapter.getView(FruitAdapter.java:31)
at android.widget.AbsListView.obtainView(AbsListView.java:2765)
at android.widget.ListView.makeAndAddView(ListView.java:1801)
at android.widget.ListView.fillDown(ListView.java:697)
at android.widget.ListView.fillFromTop(ListView.java:763)
at android.widget.ListView.layoutChildren(ListView.java:1641)
at android.widget.AbsListView.onLayout(AbsListView.java:2578)
at android.view.View.layout(View.java:15746)
at android.view.ViewGroup.layout(ViewGroup.java:4868)
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055)
at android.view.View.layout(View.java:15746)
at android.view.ViewGroup.layout(ViewGroup.java:4868)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
at android.widget.FrameLayout.onLayout(FrameLayout.java:388) 展开
04-26 08:13:43.394 11765-11765/com.example.dell1.myapplication E/dalvikvm﹕ >>>>> Normal User
04-26 08:13:43.394 11765-11765/com.example.dell1.myapplication E/dalvikvm﹕ >>>>> com.example.dell1.myapplication [ userId:0 | appId:10277 ]
04-26 08:13:43.944 11765-11765/com.example.dell1.myapplication E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.example.dell1.myapplication, PID: 11765
java.lang.NullPointerException
at com.example.dell1.myapplication.FruitAdapter.getView(FruitAdapter.java:31)
at android.widget.AbsListView.obtainView(AbsListView.java:2765)
at android.widget.ListView.makeAndAddView(ListView.java:1801)
at android.widget.ListView.fillDown(ListView.java:697)
at android.widget.ListView.fillFromTop(ListView.java:763)
at android.widget.ListView.layoutChildren(ListView.java:1641)
at android.widget.AbsListView.onLayout(AbsListView.java:2578)
at android.view.View.layout(View.java:15746)
at android.view.ViewGroup.layout(ViewGroup.java:4868)
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055)
at android.view.View.layout(View.java:15746)
at android.view.ViewGroup.layout(ViewGroup.java:4868)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
at android.widget.FrameLayout.onLayout(FrameLayout.java:388) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询