I wanted to filter what is shown in the Android Studio Logcat to show what is relevant to my application only. I have chosen Show only selected applications
from th
Make sure you have your DDMS window closed. If it is open, your logs might be visible there but not in Android Studio.
you should make share your IDE(Intellij or AS) Build Variants settings
there is a simple
Just click on 'debug icon'(BUG icon) next to 'run icon'(Arrow icon) then u can see app in logcat
I had the same issue. As in this picture, instead of "app", it was class name. So click it and select "app" and the problem was solved.
Please make sure to have the android property
debuggable = "true"
in the application tag AndroidManifest.xml
**<application android:debuggable="true">
</application>**
Also, if you have multiple build variants (ex. debug, alpha, release) you may need to check which build you are attempting to debug and set the debuggable true
attribute accordingly in the build.gradle
buildTypes {
debug {
...
debuggable true
...
}
alpha {
...
debuggable true
...
}
release {
...
debuggable false
...
}
}
In my case I used to use 2 Android Studio's (stable and canary) so the reason of the problem was this.
So, if you are running another IDE such as another Android Studio or Eclipse this could be the problem.
Solution: Close one of the IDE and if "Enable ADB Integration" is already enabled disabling and re-enabling solves it