title: "ADB not found" error in Android Studio 3.1.2 with Device File Explorer
body: <p>I upgraded Android Studio to 3.1.2 and when I want to use the <code>Device File Explorer</code>, I got the &quot;Error initializing ADB:Android Debug Bridge not found.&quot;error, however, my adb works fine in both cmd and powershell, how can I fix this error?From the error messages I find there is an Exception in a plugin called <code>Android Support</code> and on my computer its version is 10.3.1.2.
  Flowing are the error messages:</p>
  <pre><code>ADB not found
  com.intellij.openapi.diagnostic.Logger$EmptyThrowable
      at com.intellij.openapi.diagnostic.Logger.error(Logger.java:140)
      at com.android.tools.idea.explorer.adbimpl.AdbDeviceFileSystemService.start(AdbDeviceFileSystemService.java:107)
      at com.android.tools.idea.explorer.DeviceExplorerController.setup(DeviceExplorerController.java:139)
      at com.android.tools.idea.explorer.DeviceExplorerToolWindowFactory.createToolWindowContent(DeviceExplorerToolWindowFactory.java:51)
      at com.intellij.openapi.wm.impl.ToolWindowImpl.ensureContentInitialized(ToolWindowImpl.java:573)
      at com.intellij.openapi.wm.impl.ToolWindowImpl.getContentManager(ToolWindowImpl.java:407)
      at com.intellij.openapi.wm.impl.commands.RequestFocusInToolWindowCmd.processRequestFocus(RequestFocusInToolWindowCmd.java:73)
      at com.intellij.openapi.wm.impl.commands.RequestFocusInToolWindowCmd.lambda$run$0(RequestFocusInToolWindowCmd.java:61)
      at com.intellij.openapi.util.ExecutionCallback.doWhenExecuted(ExecutionCallback.java:100)
      at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:111)
      at com.intellij.openapi.wm.impl.commands.RequestFocusInToolWindowCmd.run(RequestFocusInToolWindowCmd.java:61)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.ToolWindowsPane$AddDockedComponentCmd.run(ToolWindowsPane.java:768)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:93)
      at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
      at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
      at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
      at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:424)
      at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:407)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
      at java.awt.EventQueue.access$500(EventQueue.java:98)
      at java.awt.EventQueue$3.run(EventQueue.java:715)
      at java.awt.EventQueue$3.run(EventQueue.java:709)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
      at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:822)
      at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:650)
      at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/bthGL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bthGL.png" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/z7OjQ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/z7OjQ.png" alt="enter image description here" /></a></p>