0

Is there any way to print the logs of Android emulator in a file?

I want to do this when the Android Studio is not running, maybe by using adb.

backslashN
  • 2,795
  • 3
  • 15
  • 25

1 Answers1

1

Another way to achieve this, on Windows 7, which worked best for me: there is a file adb.log somewhere in your user directory. In my case it was located in C:\users\[username]\AppData\Local\Temp . If it isn't there, you probably find it by searching your users\[username] directory for adb.log . The log messages from the emulator are there, at least they were in my case.
Once you find it, you can view it using Notepad; it will usually be in use by another application (probably adb.exe, via which the emulator gets its messages there) but Notepad doesn't mind, it creates a read-only copy. If you actually want to copy it to another file you can do a copy-paste; in my case I actually wanted to see its contents, specifically the emulator messages.

VSim
  • 161
  • 3
  • 10