Eclipse - Empty Logcat with Android 7

前端 未结 4 741
刺人心
刺人心 2020-12-05 13:32

I recently updated my Nexus 9 Tablet to Android 7 Nougat.
Since then the Logcat view in Eclipse stoped displaying Logcat messages, the view just stays empty.
Also th

4条回答
  •  [愿得一人]
    2020-12-05 14:12

    Try to launch directly sdk tool monitor from Android SDK, it can be found in:

    sdk-tools folder/tools/

    you'll see monitor.bat, click on it to launch Android Device Monitor oustside Eclipse, don't forget to create a filter for your APP, go to logcat window-> Saved filters -> + -> fill your app name in "by Aplication Name"

    If nothing works, in an emergency, you may try this to get logcat over command line (use cmd in windows), type :

    adb logcat --pid=YOUR_APP_PID_NUMER
    

    this shows messages from your APP. if you don't know your PID, put a line in your APP code:

    System.out.println("foo stuff I can find easily when I read logcat results");
    

    Run your app, make sure you get the up line executed.

    Then in your command line type:

    adb -d logcat System.out:I *:S
    

    Find your line System.out.println("foo... and read the PID number, is next right to time data.

    And then

    adb logcat --pid=pid number you read from your comment line
    

    to get logcat messages from your app in the command shell in real-time. If you just want messages output till now, just add -d modifier:

    adb -d logcat --pid=pid number you read from your comment line
    

提交回复
热议问题