java – React Native,Android Log.

Is there any way to see logs from Android's native (Java) modules on the machine?

I am using the Javas log module https://developer.android.com/reference/android/util/Log.html – but I can't get anything from there To be honest, I'm not sure how to use it if possible ATM doesn't have much code – it's just

Log.d("Notification","Notify App");

Because I want to know if I can see the notification somewhere - I know the Java module is registered correctly because I'm calling another function

thank you!

Solution

If you put the log DS is placed in your native code. You can use Android device monitor in Android studio to access logs, or use this command on the terminal:

Make sure USB debugging is enabled in the phone

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>