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
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
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。