开发者社区> 问答> 正文

App 运行出错,帮我看一下日志? 400 报错

App 运行出错,帮我看一下日志? 400 报错

@火蚁 你好,想跟你请教个问题:

06-02 15:47:10.221: E/AndroidRuntime(19868): FATAL EXCEPTION: main
06-02 15:47:10.221: E/AndroidRuntime(19868): Process: net.oschina.app, PID: 19868
06-02 15:47:10.221: E/AndroidRuntime(19868): java.lang.RuntimeException: Unable to start activity ComponentInfo{net.oschina.app/net.oschina.app.ui.MainActivity}: android.view.InflateException: Binary XML file line #56: Error inflating class fragment
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.app.ActivityThread.access$800(ActivityThread.java:135)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.os.Handler.dispatchMessage(Handler.java:102)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.os.Looper.loop(Looper.java:136)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.app.ActivityThread.main(ActivityThread.java:5001)
06-02 15:47:10.221: E/AndroidRuntime(19868): at java.lang.reflect.Method.invokeNative(Native Method)
06-02 15:47:10.221: E/AndroidRuntime(19868): at java.lang.reflect.Method.invoke(Method.java:515)
06-02 15:47:10.221: E/AndroidRuntime(19868): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
06-02 15:47:10.221: E/AndroidRuntime(19868): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
06-02 15:47:10.221: E/AndroidRuntime(19868): at dalvik.system.NativeStart.main(Native Method)
06-02 15:47:10.221: E/AndroidRuntime(19868): Caused by: android.view.InflateException: Binary XML file line #56: Error inflating class fragment
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:713)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
06-02 15:47:10.221: E/AndroidRuntime(19868): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.app.Activity.setContentView(Activity.java:1929)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.support.v7.app.ActionBarActivity.superSetContentView(ActionBarActivity.java:217)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.support.v7.app.ActionBarActivityDelegateICS.setContentView(ActionBarActivityDelegateICS.java:110)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:77)
06-02 15:47:10.221: E/AndroidRuntime(19868): at net.oschina.app.ui.MainActivity.onCreate(MainActivity.java:118)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.app.Activity.performCreate(Activity.java:5231)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
06-02 15:47:10.221: E/AndroidRuntime(19868): ... 11 more
06-02 15:47:10.221: E/AndroidRuntime(19868): Caused by: java.lang.NullPointerException
06-02 15:47:10.221: E/AndroidRuntime(19868): at net.oschina.app.ui.NavigationDrawerFragment.initView(NavigationDrawerFragment.java:167)
06-02 15:47:10.221: E/AndroidRuntime(19868): at net.oschina.app.ui.NavigationDrawerFragment.onCreateView(NavigationDrawerFragment.java:109)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.support.v4.app.Fragment.performCreateView(Fragment.java:1504)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:915)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1099)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1201)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:292)
06-02 15:47:10.221: E/AndroidRuntime(19868): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
06-02 15:47:10.221: E/AndroidRuntime(19868): ... 24 more
06-02 15:50:33.178: E/AndroidRuntime(20177): FATAL EXCEPTION: main
06-02 15:50:33.178: E/AndroidRuntime(20177): Process: net.oschina.app, PID: 20177
06-02 15:50:33.178: E/AndroidRuntime(20177): java.lang.RuntimeException: Unable to start activity ComponentInfo{net.oschina.app/net.oschina.app.ui.MainActivity}: android.view.InflateException: Binary XML file line #56: Error inflating class fragment
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.app.ActivityThread.access$800(ActivityThread.java:135)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.os.Handler.dispatchMessage(Handler.java:102)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.os.Looper.loop(Looper.java:136)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.app.ActivityThread.main(ActivityThread.java:5001)
06-02 15:50:33.178: E/AndroidRuntime(20177): at java.lang.reflect.Method.invokeNative(Native Method)
06-02 15:50:33.178: E/AndroidRuntime(20177): at java.lang.reflect.Method.invoke(Method.java:515)
06-02 15:50:33.178: E/AndroidRuntime(20177): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
06-02 15:50:33.178: E/AndroidRuntime(20177): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
06-02 15:50:33.178: E/AndroidRuntime(20177): at dalvik.system.NativeStart.main(Native Method)
06-02 15:50:33.178: E/AndroidRuntime(20177): Caused by: android.view.InflateException: Binary XML file line #56: Error inflating class fragment
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:713)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
06-02 15:50:33.178: E/AndroidRuntime(20177): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.app.Activity.setContentView(Activity.java:1929)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.support.v7.app.ActionBarActivity.superSetContentView(ActionBarActivity.java:217)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.support.v7.app.ActionBarActivityDelegateICS.setContentView(ActionBarActivityDelegateICS.java:110)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:77)
06-02 15:50:33.178: E/AndroidRuntime(20177): at net.oschina.app.ui.MainActivity.onCreate(MainActivity.java:118)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.app.Activity.performCreate(Activity.java:5231)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
06-02 15:50:33.178: E/AndroidRuntime(20177): ... 11 more
06-02 15:50:33.178: E/AndroidRuntime(20177): Caused by: java.lang.NullPointerException
06-02 15:50:33.178: E/AndroidRuntime(20177): at net.oschina.app.ui.NavigationDrawerFragment.initView(NavigationDrawerFragment.java:167)
06-02 15:50:33.178: E/AndroidRuntime(20177): at net.oschina.app.ui.NavigationDrawerFragment.onCreateView(NavigationDrawerFragment.java:109)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.support.v4.app.Fragment.performCreateView(Fragment.java:1504)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:915)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1099)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1201)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:292)
06-02 15:50:33.178: E/AndroidRuntime(20177): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
06-02 15:50:33.178: E/AndroidRuntime(20177): ... 24 more


展开
收起
爱吃鱼的程序员 2020-06-04 13:12:22 440 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    06-02 15:47:10.221: E/AndroidRuntime(19868): Caused by: java.lang.NullPointerException
    06-02 15:47:10.221: E/AndroidRuntime(19868): at net.oschina.app.ui.NavigationDrawerFragment.initView(NavigationDrawerFragment.java:167)######@vinson_lou 可以了 原来配置eclipse环境的问题######回复 @vinson_lou : 167行代码是啥?debug######安卓新手!下载的最新代码~ 想从这个开源功能入手写安卓开发 NULLpoint我也看到了,但是不知道怎么解决,已经到家门口了,能帮忙再具体一点错误解决方法?######按这个配置一下,http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2015/0102/2247.html

    2020-06-04 16:49:18
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
女性移动App安全攻防战 立即下载
汇聚云计算的生态核能——云市场,云上APP Store 立即下载
千万级用户直播App——服务端架构设计和思考 立即下载