DEV Community

insthync
insthync

Posted on

How to watch Android app log messages with adb logcat for Unity developer

For those who use Unity to develop Apps, you might not install Android SDK by yourself (Installed by Unity) and never uses adb yet, you can find Android SDK installing path from Unity Editor

In Unity Editor, open menu: Edit -> Preferences…

Image description

In Preferences window go to External Tools, then at Android SDK press Copy Path button

Image description

Open cmd (Terminal for mac user), use cd command to go to the copied path. For this example, it is D:\Unity\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK

If it is in difference drive, you must change it, for example if your Unity installed in D: you must change the drive by enter D: in cmd

Then cd D:\Unity\2020.3.26f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK

Image description

The adb will located in platform-tools folder, so you must enter to the folder by cd platform-tools then you will be able to use adb, you can enter adb logcat to see log messages

Image description

If you want it to filter only messages from Unity you may uses this command

adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay