前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >mView has no focus+DecorView setVisiblity: visibility = 4+Finishing stop of ActivityRecord

mView has no focus+DecorView setVisiblity: visibility = 4+Finishing stop of ActivityRecord

作者头像
wust小吴
发布2019-07-08 15:39:41
7220
发布2019-07-08 15:39:41
举报
文章被收录于专栏:风吹杨柳

09-24 18:22:23.692: E/AndroidRuntime(22703): FATAL EXCEPTION: main 09-24 18:22:23.692: E/AndroidRuntime(22703): Process: com.example.nongmin, PID: 22703 09-24 18:22:23.692: E/AndroidRuntime(22703): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.nongmin/com.jarvis.user.info.UApplyedActivity}: android.view.InflateException: Binary XML file line #17: Error inflating class com.clockrock.widget.PullToRefreshLayout 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2392) 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2443) 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.app.ActivityThread.access$800(ActivityThread.java:157) 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354) 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.os.Handler.dispatchMessage(Handler.java:110) 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.os.Looper.loop(Looper.java:193) 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.app.ActivityThread.main(ActivityThread.java:5348) 09-24 18:22:23.692: E/AndroidRuntime(22703): at java.lang.reflect.Method.invokeNative(Native Method) 09-24 18:22:23.692: E/AndroidRuntime(22703): at java.lang.reflect.Method.invoke(Method.java:515) 09-24 18:22:23.692: E/AndroidRuntime(22703): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829) 09-24 18:22:23.692: E/AndroidRuntime(22703): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645) 09-24 18:22:23.692: E/AndroidRuntime(22703): at dalvik.system.NativeStart.main(Native Method) 09-24 18:22:23.692: E/AndroidRuntime(22703): Caused by: android.view.InflateException: Binary XML file line #17: Error inflating class com.clockrock.widget.PullToRefreshLayout 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707) 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 09-24 18:22:23.692: E/AndroidRuntime(22703): at com.jarvis.user.info.UApplyedActivity.onCreate(UApplyedActivity.java:47) 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.app.Activity.performCreate(Activity.java:5451) 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1097) 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2346) 09-24 18:22:23.692: E/AndroidRuntime(22703): ... 11 more 09-24 18:22:23.692: E/AndroidRuntime(22703): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.clockrock.widget.PullToRefreshLayout" on path: DexPathList[[zip file "/data/app/com.example.nongmin-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.nongmin-2, /vendor/lib, /system/lib]] 09-24 18:22:23.692: E/AndroidRuntime(22703): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) 09-24 18:22:23.692: E/AndroidRuntime(22703): at java.lang.ClassLoader.loadClass(ClassLoader.java:497) 09-24 18:22:23.692: E/AndroidRuntime(22703): at java.lang.ClassLoader.loadClass(ClassLoader.java:457) 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.view.LayoutInflater.createView(LayoutInflater.java:559) 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) 09-24 18:22:23.692: E/AndroidRuntime(22703): ... 20 more 错误原因:自定义布局没有搞 09-24 18:42:59.296: V/ActivityThread(23911): Finishing stop of ActivityRecord{42556780 token=android.os.BinderProxy@42555df8 {com.example.nongmin/com.jarvis.mytaobao.home.Main_FA}}: show=false win=com.android.internal.policy.impl.PhoneWindow@42626968 09-24 18:42:59.296: V/PhoneWindow(23911): DecorView setVisiblity: visibility = 4 ,Parent =ViewRoot{425587f8 com.example.nongmin/com.jarvis.mytaobao.home.Main_FA,ident = 0}, this =com.android.internal.policy.impl.PhoneWindow$DecorView{426278f8 I.E..... R....... 0,0-1080,1920} 09-24 18:47:02.781: V/ActivityThread(24144): Finishing stop of ActivityRecord{42561c30 token=android.os.BinderProxy@425612a8 {com.example.nongmin/com.jarvis.mytaobao.home.Main_FA}}: show=false win=com.android.internal.policy.impl.PhoneWindow@42581038 09-24 18:47:02.782: V/PhoneWindow(24144): DecorView setVisiblity: visibility = 4 ,Parent =ViewRoot{4255d6d0 com.example.nongmin/com.jarvis.mytaobao.home.Main_FA,ident = 0}, this =com.android.internal.policy.impl.PhoneWindow$DecorView{42581e68 I.E..... R....... 0,0-1080,1920} 09-24 18:52:35.296: D/ActivityThread(24420): ACT-STOP_ACTIVITY_HIDE handled : 0 / android.os.BinderProxy@4255eed0 09-24 19:06:15.949: W/ViewRootImpl(25176): mView has no focus, use com.android.internal.policy.impl.PhoneWindow$DecorView{441e4480 V.E..... R.....ID 0,0-1080,1920} instead 09-24 19:28:16.927: V/InputMethodManager(25968): onWindowFocus: null softInputMode=288 first=true flags=#1810100 09-24 19:28:16.928: V/InputMethodManager(25968): START INPUT: com.android.internal.policy.impl.PhoneWindow$DecorView{44095670 V.E..... R.....ID 0,0-1080,1920} ic=null tba=android.view.inputmethod.EditorInfo@440b8f20 controlFlags=#104 09-24 19:28:16.934: W/ViewRootImpl(25968): mView has no focus, use com.android.internal.policy.impl.PhoneWindow$DecorView{44095670 V.E..... R.....ID 0,0-1080,1920} instead 09-24 19:28:16.942: D/GraphicBuffer(25968): register, handle(0x7b8a1f18) (w:1080 h:1920 s:1088 f:0x1 u:0x000900) 09-24 19:28:16.954: D/OpenGLRenderer(25968): Flushing caches (mode 0) 09-24 19:28:16.956: D/GraphicBuffer(25968): unregister, handle(0x7b4f08e0) (w:1080 h:1920 s:1088 f:0x1 u:0x000900) 09-24 19:28:16.957: D/GraphicBuffer(25968): unregister, handle(0x7b508798) (w:1080 h:1920 s:1088 f:0x1 u:0x000900) 09-24 19:28:16.959: D/GraphicBuffer(25968): unregister, handle(0x7b899978) (w:1080 h:1920 s:1088 f:0x1 u:0x000900) 09-24 19:28:16.960: D/GraphicBuffer(25968): unregister, handle(0x7b396148) (w:1080 h:1920 s:1088 f:0x1 u:0x000900) 09-24 19:28:17.292: V/ActivityThread(25968): Finishing stop of ActivityRecord{4255f890 token=android.os.BinderProxy@4255ef08 {com.example.nongmin/com.jarvis.mytaobao.home.Main_FA}}: show=false win=com.android.internal.policy.impl.PhoneWindow@4262bcd0 09-24 19:28:17.293: V/PhoneWindow(25968): DecorView setVisiblity: visibility = 4 ,Parent =ViewRoot{42561908 com.example.nongmin/com.jarvis.mytaobao.home.Main_FA,ident = 0}, this =com.android.internal.policy.impl.PhoneWindow$DecorView{4262cb00 I.E..... R....... 0,0-1080,1920} 09-24 19:28:17.293: D/ActivityThread(25968): ACT-STOP_ACTIVITY_HIDE handled : 0 / android.os.BinderProxy@4255ef08

09-24 19:28:17.397: D/GraphicBuffer(25968): unregister, handle(0x7ab5a4c0) (w:534 h:105 s:544 f:0x1 u:0x000933)

上面的错误都是:少了一行代码  setContentView(view);

标题的错误是:少了一行代码  setContentView(view);

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2015年09月24日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档