131

I have tried to import my project to Android Studio and I got this error. I need to know where I can get the logs.

Consult IDE log for more details (Help | Show Log)
Ryan M
  • 18,333
  • 31
  • 67
  • 74
Asthme
  • 5,163
  • 6
  • 47
  • 65
  • Did you try View > Tool Windows > Android? – fasteque Nov 05 '13 at 08:51
  • There is an option in your Toolbar to check your logs by enabling (DDMS i.e. android icon) or else in bottom you can check Android>>Devices | logcat. – Gru Nov 05 '13 at 09:00
  • @PankajKumar I want to know where to find logs.how this question will be duplicate? – Asthme Nov 05 '13 at 09:02
  • @Gru it doesnot show anything about y this project has not been integrated? – Asthme Nov 05 '13 at 09:05
  • @AravindAsthme have you imported eclipse project in android studio????. – Gru Nov 05 '13 at 09:08
  • @Gru it does not let me to import.i don't know y.so i thought log will be helpful – Asthme Nov 05 '13 at 09:14
  • @fasteque i have tried.it does not show any thing – Asthme Nov 05 '13 at 09:15
  • there is a way find Alias, keystore password and key password. I just recovered and saved myself from a lot of trouble. Please refer this: http://stackoverflow.com/questions/28034899/how-to-retrieve-key-alias-and-key-password-for-signed-apk-in-android-studiomigr – TharakaNirmana Dec 11 '15 at 10:38
  • 1
    In my Windows 10 "Help/Show Log In Explorer" goes to "This Computer" view and it does not go to the directory where the logs are. The logs can be found manually in C:\Users\\.AndroidStudioPreview\system\log – Tickseeker Apr 06 '18 at 06:03

16 Answers16

224

On toolbar -> Help Menu -> Show log in Explorer or Show log in Finder (for Mac users).

It opens log folder, where you can find all logs.

enter image description here

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
  • @Alston is it a good reason to downvote an answer of 3 years ago? In 2.2.3 the Help is in the same position. Check the toolbar, last entry on the right "Help" then "show log in explorer". – Gabriele Mariotti Jan 17 '17 at 12:20
  • 3
    For mac users, that would be `Show Log in Finder` – Gökhan Barış Aker Jan 03 '18 at 12:44
  • I got the same error, however the log shows no valuable information yet: 2021-12-07 14:32:10,627 [ 156388] ERROR - intellij.openapi.progress.Task - OS: Linux 2021-12-07 14:32:10,628 [ 156389] ERROR - intellij.openapi.progress.Task - Last Action: 2021-12-07 14:32:10,722 [ 156483] INFO - cState$SyncStateUpdaterService - stopTrackingTask(RESOLVE_PROJECT:0) 2021-12-07 14:32:10,726 [ 156487] WARN - e.project.sync.GradleSyncState - Gradle sync failed: Sync failed: reason unknown (55 s 334 ms) – Liker777 Dec 07 '21 at 11:36
  • It works only if you have some project opened (at least it's true for my Android Studio Chipmunk | 2021.2.1 Patch 2), so you have to open some project or create at least blank project first – Ruslan Zhomir Aug 10 '22 at 11:47
26

On a Mac, the idea.log is contained in

/Users/<user>/Library/Logs/AndroidStudio/idea.log

The new stable version (1.2) is in

/Users/<user>/Library/Logs/AndroidStudio1.2/

The new stable version (2.2) is in

/Users/<user>/Library/Logs/AndroidStudio2.2/

The new stable version (3.4) is in

/Users/<user>/Library/Logs/AndroidStudio3.4/

(From auspicious99 comment) On MacOS Catalina and Big Sur (at least), Android Studio 4.1, the idea.log can be found in,

/Users/<user>/Library/Logs/Google/AndroidStudio4.1/
Ragunath Jawahar
  • 19,513
  • 22
  • 110
  • 155
djunod
  • 4,876
  • 2
  • 34
  • 28
15

I had the same problem and after some searching I was able to find my logs at the following location:

C:\Users\<yourid>\.AndroidStudioPreview\system\log

Michael Yaworski
  • 13,410
  • 19
  • 69
  • 97
AnthonyBCodes
  • 342
  • 2
  • 13
11

My Android Studio is 3.0, please follow the two steps below,hope this will help;) First step. Second step

Longxing
  • 416
  • 5
  • 9
11

Just because none of these pointed to the correct location on my Win10 system

C:\Users[User Name]\AppData\Local\Google\AndroidStudio4.2\log\idea.log

Keith B
  • 121
  • 1
  • 2
4

Android Studio find a log

MacOS version

Help -> Show Log in Finder

In my case it is:

/Users/alex/Library/Logs/Google/AndroidStudio4.2/idea.log
yoAlex5
  • 29,217
  • 8
  • 193
  • 205
3

There is no way to get the logs for installing problems.

Vetrivel
  • 1,149
  • 1
  • 7
  • 16
3

Had a hard time finding the logs because the IDE was crashing on launch, if you are on Mac and use Android Studio 4.1 then the logs location may be found at /Users/{user}/Library/Logs/Google/AndroidStudio4.1/

And to be specific for me it is on macOS Big Sur

Tsepo Nkalai
  • 1,492
  • 11
  • 18
2

You could open Messages or Event Log tool window to see your log. In addition to that if you want to see device log then you could open Logcat tool window to view your log : View > Tool Windows > Logcat enter image description here

PKumar
  • 516
  • 9
  • 20
  • The question was not asking for event log or logcat, but for the IDE log. Event log is like a subset of the IDE log. – auspicious99 Oct 27 '20 at 08:16
1

Hope this helps someone: on Mac OS X, the logs are within /Users/<user>/Library/Logs/AndroidStudio<version>/

Maria Ines Parnisari
  • 16,584
  • 9
  • 85
  • 130
  • Thanks! They moved it into a Google folder though. It's now in: /Users//Library/Logs/Google/AndroidStudio/ – Dan1ell Dec 16 '21 at 13:58
1

The path to the log files in Windows has been moved.

They appear to be under C:\Program Files\Android\Android Studio\caches\trunk-system\log\idea.log in Android Studio 4.1.1

Paul Smith
  • 166
  • 3
  • 13
1

If you got here because you can't start an emulator and Android Studio gives you that error message:

  • kill qemu-system-x86_64.exe and adb processes

(Windows 10)

Inoy
  • 1,065
  • 1
  • 17
  • 24
0

In ubuntu it should be under

/home/user_name/product_name/system/log

where user_name is logged in user name and product_name could be e.g. .AndroidStudio1.5

Surya
  • 173
  • 2
  • 5
0

In windows version

you can find the log in the bottom of the IDE, click the "Gradle Console", and then choose the "Android Monitor". You will see a Droplistbox control which shows "Verbose" as a default value.

If you use log.v() . Verbose option is okay. if you use log.d(), just change it to Debug.

So when you run your emulator, you can catch your log from this window.

oscarz
  • 1,184
  • 11
  • 19
0

C:\Users\bob.AndroidStudio2.3\system\log

0

On my Ubuntu system it was under ~/.cache/Google/AndroidStudio2022.2/log/.

nhcodes
  • 1,206
  • 8
  • 20