Reputation: 3541
When I run my android app, the logcat window fills up and then clears. I have System.out.println()'s that aren't showing up, nothing is showing up and I have no idea why.
EDIT: Using Android Studio
Upvotes: 0
Views: 88
Reputation: 1879
I have had a lot of issues with logcat in Android Studio, so here's a few items:
System.out.println()
in Android Studio, but the typical Android way to print debug messages is with Log.d
. Log
is located in android.util.Log. Android Studio will import it automatically if you type Log and press alt+enter.My guess would be that your problem isn't that it's clearing logcat, but that it's not clearing logcat and Android Studio is choking on too large of a log file. Either select auto-clearing from the run configuration window or try walking away for a few minutes and see if the logcat ever comes back
Upvotes: 1