12

I am facing issues with opening the file location in explorer.

If I try to view a specific file in the Windows File Explorer via Right click -> Show in Explorer, nothing happens.

It used to work in older versions 3.0.1, however unable to do the same in 3.1.0

enter image description here

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Vikas singh
  • 3,461
  • 3
  • 14
  • 28

2 Answers2

4

In the Logs Android Studio stated that explorer command could not be found, so I solved it by adding C:\Windows\explorer.exe to my Path Variable and restarted Android Studio.

I don't think it is (only) an Android Studio Bug because explorer command wasn't working in cmd either.
Also it is strange since it worked in 3.2 beta while 3.1.3 wasn't working.

Thommy
  • 5,070
  • 2
  • 28
  • 51
  • Did you try restarting? – Thommy Jul 05 '18 at 06:00
  • @Thommy i tried above solution but its not working and also restarting my system after setting path. – Arbaz.in Sep 19 '18 at 05:45
  • @Arbaz.in Click on "Open in Explorer" in Android Studio and then check the logs, if it says "command explorer not found". If that is not the case, my solution will not work. – Thommy Sep 20 '18 at 08:16
  • @Thommy i tried **(Show in Explorer)** same and i didn't get any log in Logcat. – Arbaz.in Sep 20 '18 at 08:24
  • @Arbaz.in Not Logcat, the logfile in Android Studio's config directory: {user}\.AndroidStudio3.1\system\log – Thommy Sep 20 '18 at 11:24
  • @Thommy i navigate to that folder but i cant found like that. what was issue with Android Studio actually i am also not able to open apk file from android studio when i tried to build apk – Arbaz.in Sep 20 '18 at 11:48
  • @Thommy its not working for me but thanks for the response on my comment. – Arbaz.in Sep 21 '18 at 05:12
  • @Arbaz.in The way you describe it your problem is a completly different one than what is asked in this question. Please open a new one. – Thommy Sep 21 '18 at 11:10
  • @Thommy ,actually my issue was resolved with this [solution](https://stackoverflow.com/a/51166662/5995648) – Arbaz.in Sep 21 '18 at 11:12
  • Well that is the same as mine – Thommy Sep 22 '18 at 12:21
3

As answered by Thommy, you need to setup your path variables accordingly.

Just try adding the below paths to your environment variables and then I think it should work fine.

Add:

1 - C:\Windows

2 - %SystemRoot%

3 - %SystemRoot%\system32

Path Variables Screenshot

An08NY
  • 139
  • 15