Android Studio无法找到AdB

时间:2018-11-30 11:57:32

标签: java android-studio sdk

当我尝试播放我的应用程序时,它说无法找到adb 这是错误日志 无法找到ADB java.lang.IllegalArgumentException:无法找到adb     在com.android.tools.idea.run.editor.DeployTargetPickerDialog。(DeployTargetPickerDialog.java:128)     在com.android.tools.idea.run.editor.ShowChooserTargetProvider.showPrompt(ShowChooserTargetProvider.java:97)     在com.android.tools.idea.run.AndroidRunConfigurationBase.getDeployTarget(AndroidRunConfigurationBase.java:559)     在com.android.tools.idea.run.AndroidRunConfigurationBase.getState(AndroidRunConfigurationBase.java:268)     在com.intellij.execution.runners.ExecutionEnvironment.getState(ExecutionEnvironment.java:158)     在com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:55)     在com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:50)     在com.intellij.execution.ProgramRunnerUtil.executeConfigurationAsync(ProgramRunnerUtil.java:97)     在com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:44)     在com.intellij.execution.impl.ExecutionManagerImpl.start(ExecutionManagerImpl.java:111)     在com.intellij.execution.impl.ExecutionManagerImpl.access $ 300(ExecutionManagerImpl.java:59)     在com.intellij.execution.impl.ExecutionManagerImpl $ 3.run(ExecutionManagerImpl.java:439)     在com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:246)     在com.intellij.util.Alarm $ Request.runSafely(Alarm.java:417)     在com.intellij.util.Alarm $ Request.access $ 700(Alarm.java:344)     在com.intellij.util.Alarm $ Request $ 1.run(Alarm.java:384)     在com.intellij.openapi.application.TransactionGuardImpl $ 2.run(TransactionGuardImpl.java:315)     在com.intellij.openapi.application.impl.LaterInvocator $ FlushQueue.runNextEvent(LaterInvocator.java:424)     在com.intellij.openapi.application.impl.LaterInvocator $ FlushQueue.run(LaterInvocator.java:407)     在java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)     在java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)     在java.awt.EventQueue.access $ 500(EventQueue.java:98)     在java.awt.EventQueue $ 3.run(EventQueue.java:715)     在java.awt.EventQueue $ 3.run(EventQueue.java:709)     在java.security.AccessController.doPrivileged(本机方法)     在java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)     在java.awt.EventQueue.dispatchEvent(EventQueue.java:732)     在com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:822)     在com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:650)     在com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)     在java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)     在java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)     在java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)     在java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)     在java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)     在java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

1 个答案:

答案 0 :(得分:0)

答案: 防病毒软件将我的sdk文件保存在其病毒箱中,只需转到avast防病毒软件,然后转到病毒箱,然后从那里还原sdk文件 就这样