Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug console doesn't show messages after upgrading Android Studio to 2.3

I just upgraded the version of Android Studio to 2.3 and gradle to version 3.3 and I lost one of the most usefull features, the logs inside the Debug Console. When I run the app with Debug mode the only Log that's being displayed inside the Debug console is this:

03/03 10:35:40: Launching app Split APKs installed 
$ adb shell am startservice com.myapp.android/com.android.tools.fd.runtime.InstantRunService 
$ adb shell am start -n "com.myapp.android/com.myapp.android.UI.SplashActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Connecting to com.myapp.android Connected to the target VM, address: 'localhost:8601', transport: 'socket'

After that nothing is being displayed. Any idea how to fix this?

like image 463
Student Avatar asked Mar 03 '17 08:03

Student


People also ask

How do I view console logs on Android?

Android studio provide all you need to see console. log and other. In logcat just filter to "/Web Console" and you will see your js logs... Show activity on this post.

What is the difference between run and debug in Android Studio?

Run simply launches the application (regardless of what the flavor is). Debug essentially does the same thing but will stop at any breakpoints that you might have set ...

How do I enable debug on APK?

To start debugging an APK, click Profile or debug APK from the Android Studio Welcome screen. Or, if you already have a project open, click File > Profile or Debug APK from the menu bar. In the next dialog window, select the APK you want to import into Android Studio and click OK.

How do I run Android in debug mode?

Press Ctrl + Alt + F5 (or Shift + F9 ) to launch the app in debug mode. Choose Run -> Attach to process and select the signature of an app to enable the debug mode, which is already installed via adb.


1 Answers

I don't know how to fix this (I hope someone figures it out soon), but here's an alternative:

  1. Open the "Android Monitor" tab
  2. Select the "logcat" tab
  3. In the upper-right corner of the Android Monitor tool window, click on the drop-down menu and select "Show only selected application"

The output from Android Monitor is now almost the same as what it was with Debug. You can choose what information will be displayed before the messages by clicking the gear in the logcat's left sidebar.

You'll end up with something like this:

logcat

like image 100
Miles Krell Avatar answered Oct 19 '22 01:10

Miles Krell