According to the official doc, typing adb logcat *:S ReactNative:V ReactNativeJS:V
in the terminal will display all the Android Logs, however when I do so I get the following error message: no matches found: *:S
. I have put Log statements in my custom native modules like so :
Log.e(TAG, "Unsupported media type:" + type);
.I searched for this problem online and found no solution(No one has had the same error as me, apparently).
I would like to add that the code is working fine.
Navigate to device settings and enable Developer Options (see section for ADB logs) Navigate to Developer Options and tap on Take/Submit Bug Report. Select Full Report when prompted to get the full device info along with the logs.
Note that as of React Native 0.29 and later, you can get logs without running the debugger. Just run react-native log-ios or react-native log-android on the command line inside your project folder. And when you open the Remote JS Debugging, you have to press option+command+i and check the console.
Solution 1: Restarting your Android StudioIn your IDE Go to File > Invalidate Caches and Restart > Invalidate and Restart. This Solution will clear all the caches of Android studio IDE and restart it automatically, By the method, there are 80% change that Logcat will start work as before.
Try using:
adb logcat -s ReactNative:V ReactNativeJS:V
Source: https://developer.android.com/studio/command-line/logcat.html
I am assuming that you are using zsh for the terminal. Try using it like this
adb logcat '*:S' ReactNative:V ReactNativeJS:V
Hope this will help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With