I upgraded Android Studio to 3.1.2 and when I want to use the Device File Explorer
, I got the "Error initializing ADB:Android Debug Bridge not found."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 Android Support
and on my computer its version is 10.3.1.2. Flowing are the error messages:
我将Android Studio升级到3.1.2,当我想使用设备文件浏览器时,我得到了“错误初始化ADB:找不到Android调试桥。”错误,但是,我的adb在cmd和powershell中工作正常,怎么能我修复了这个错误?从错误消息中我发现在一个名为Android Support的插件中有一个Exception,在我的计算机上它的版本是10.3.1.2。流动是错误消息:
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)
2 个解决方案
#1
0
I had a similar problem with another program. The problem was that another screen sharing program on my machine was opening an old ADB server, which leads to miscommunication between the program and the phone.
我和另一个程序有类似的问题。问题是我的机器上的另一个屏幕共享程序正在打开旧的ADB服务器,这导致程序和电话之间的沟通错误。
#2
0
I had this problem when ADB was not authorized to access the device.
If Android Studio can initialize ADB without a device connected to your computer, then the problem is probably related to this issue.
当ADB未被授权访问设备时,我遇到了这个问题。如果Android Studio可以在没有连接到您的计算机的设备的情况下初始化ADB,则问题可能与此问题有关。
To fix this, I started the adb server from the terminal, authorized it and the restarted Android Studio.
为了解决这个问题,我从终端启动了adb服务器,授权它和重新启动的Android Studio。
#1
0
I had a similar problem with another program. The problem was that another screen sharing program on my machine was opening an old ADB server, which leads to miscommunication between the program and the phone.
我和另一个程序有类似的问题。问题是我的机器上的另一个屏幕共享程序正在打开旧的ADB服务器,这导致程序和电话之间的沟通错误。
#2
0
I had this problem when ADB was not authorized to access the device.
If Android Studio can initialize ADB without a device connected to your computer, then the problem is probably related to this issue.
当ADB未被授权访问设备时,我遇到了这个问题。如果Android Studio可以在没有连接到您的计算机的设备的情况下初始化ADB,则问题可能与此问题有关。
To fix this, I started the adb server from the terminal, authorized it and the restarted Android Studio.
为了解决这个问题,我从终端启动了adb服务器,授权它和重新启动的Android Studio。