android - Log.d is not working when filtering logcat -


my verbose logcat not working

log.d("b","hi stack."); 

because filtering logcat gc.uploaderimager(my package name). if don't filter logcat package name logcat being fast, excessive messages.

1 week ago, there no problem , remember did not filtering , no excessive messages. did happen 1 week ago? couldn't understand.

now, can not see log messages if do filtering.

my logcat fast , not readable if not filtering.

then solution?

package gc.uploaderimager; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.util.log;  public class mainactivity extends appcompatactivity {      @override     protected void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);         setcontentview(r.layout.activity_main);          log.d("b","hi stack.");     } } 

enter image description here

the android monitor view in android studio little flaky experience. app's package name should appear in combo box says "no debuggable applications". should restart adb typing adb kill-server , adb start-server command line. (you may need cd platform-tools directory in android sdk installation or add directory path in operating system configuration.) might need restart android studio after doing this.

since android studio has problems viewing logcat, many developers use third-party tools instead. pidcat jake wharton 1 popular choice.

addendum:

part of problem log output doesn't include package name in line of output:

11-05 23:28:58.554 28331-28331/? d/b: hi stack. 

the ? should package name instead. in fact of lines in output has ? package name should be. don't know exact cause, there things can think of checking:

  1. be sure usb debugging enabled on phone.

  2. restart adb explained above. can try restart button in left-hand toolbar in android monitor window in android studio.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -