我正在实现第三方底部导航库https://github.com/saeedsh92/bottomnavigation。我完全按照文档说明了如何实现它。而且它可以工作-但要经过很长时间才可以。在调试器控制台中查看,我反复收到此消息:
#ifndef DOPELIB_DOPESTUFF_WHATITISYO_H
#define DOPELIB_DOPESTUFF_WHATITISYO_H
/** Your code here. **/
#endif
然后重复相同的消息。然后最后我得到
D/ViewRootImpl@bfa27c2[HomePage]: ThreadedRenderer.create() translucent=false
D/InputTransport: Input channel constructed: fd=144
D/ViewRootImpl@bfa27c2[HomePage]: setView = DecorView@3ac39d3[HomePage] touchMode=true
D/FA: Logging event (FE): screen_view(_vs),
Bundle[{firebase_event_origin(_o)=auto,
firebase_previous_class(_pc)=HomePage,
firebase_previous_id(_pi)=1106100327638112715,
firebase_screen_class(_sc)=HomePage,
firebase_screen_id(_si)=1106100327638112716}]
D/ViewRootImpl@bfa27c2[HomePage]: dispatchAttachedToWindow
V/FA: Activity resumed, time: 206971203
D/ViewRootImpl@bfa27c2[HomePage]: Relayout returned: oldFrame=[0,0][0,0]
newFrame=[0,0][720,1280] result=0x27 surface={isValid=true -1119776768}
surfaceGenerationChanged=true
D/ViewRootImpl@bfa27c2[HomePage]: mHardwareRenderer.initialize() mSurface={isValid=true -1119776768} hwInitialized=true
D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*,
EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*,
EGLBoolean) returns 0x3000, [720x1280]-format:1
V/FA: Screen exposed for less than 1000 ms. Event not sent. time: 138
V/FA: Activity paused, time: 206971340
D/ViewRootImpl@bfa27c2[HomePage]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 720,
1280) ci=Rect(0, 48 - 0, 0) vi=Rect(0, 48 - 0, 0) or=1
V/FA: onActivityCreated
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
实施代码 我觉得听众是引起问题的原因。当我注释掉时,代码不会永远加载。
E/FA: Failed to send current screen to the service: android.os.DeadObjectException: com.google.android.gms.internal.measurement.zzn.transactAndReadExceptionReturnVoid(Unknown Source)