I am using Honor 5C. Since I have bought this phone I am not able to catch any error or potential information which helps me solving the bugs using the logcat as it shows nothing when connected to it. But on the other side I am able to see the log in the logcat when testing the app using emulator namely Genymotion. It's like a mystery for me. Even being an Android Developer I am not able to figure it out. So I need your help. I have tried all the tips and tricks related to the question found on Stack Overflow but my problem is different. Please do help.
Asked
Active
Viewed 2,330 times
0
-
have you tried to change device in Android monitor? – Kuldeep Kulkarni Apr 17 '17 at 08:44
-
Possible duplicate of [Android Logcat is empty when debug with device in android studio](http://stackoverflow.com/questions/17511867/android-logcat-is-empty-when-debug-with-device-in-android-studio) – Vadim Kotov Apr 17 '17 at 08:47
-
have you try `adb devices`? did your device listed? – ZeroOne Apr 17 '17 at 08:49
3 Answers
1
- turn on developer options on the android device.
- Make sure your device is not connected as a media device. (Some device work if turn on)
- enable check box for stay awake.
- enable check box for USB debugging.
- open cmd
- adb kill-server
- adb start-server
- adb devices
Your device will be listed
if your devices is connected but no logcat. Please invalidate cache and restart

ZeroOne
- 8,996
- 4
- 27
- 45
-
Where should I open the cmd? Or should I open the terminal in the AS itself? – Vaibhav Dhunde Apr 17 '17 at 09:09
-
-
In the terminal it says - 'adb' is not recognized as an internal or external command, operable program or batch file. – Vaibhav Dhunde Apr 17 '17 at 09:14
-
ZeroOne I tried your steps and found somwhere working but then I intentionally tried to create an NullPointerException error but I did not received any error in the logcat. Please help. – Vaibhav Dhunde Apr 18 '17 at 08:50
0
This problem can be occur due to absence of adb driver of your device ... Your can download pdanet+ which will automatically install adb driver for your device.

Amit Sharma
- 645
- 5
- 13
0
After a simple stack search I found the tricky solution for my device
It works for Huawei device (Honor 5C (mine!)).
There are no such USB Drivers available for Huawei deives. Even the support team said they can't help it.

Community
- 1
- 1

Vaibhav Dhunde
- 369
- 1
- 4
- 15