When I run my app from AndroidStudio 0.4.3 using Run
I see Choose Device
which has two sections choose a running device
or Launch Emulator
. I don't have a running emulator at the moment so I click the ...
to launch AVD manager and start an emulator. At this point I see that under choose a running device
the emulator I just launched shows up but its listed as offline
.
当我使用Run I从AndroidStudio 0.4.3运行我的应用程序时,请参阅选择设备,其中有两个部分选择正在运行的设备或启动模拟器。我目前没有正在运行的模拟器,因此我单击...以启动AVD管理器并启动模拟器。此时我看到,在选择一个正在运行的设备下,我刚启动的模拟器显示但是它被列为离线。
In the past the offline
status went away when the emulator was fully up and running. However, now I've noticed that when the emulator is launched fully, it no longer appears in choose a running device
.
过去,当模拟器完全启动并运行时,脱机状态就消失了。但是,现在我注意到,当模拟器完全启动时,它不再出现在选择正在运行的设备中。
I feel like I'm always playing cat and mouse game with android studio picking up the emulator. Is there a better way to do this? Am I missing something?
我觉得我总是在安卓工作室拿起模拟器玩猫捉老鼠游戏。有一个更好的方法吗?我错过了什么吗?
4 个解决方案
#1
41
Disable and then Enable ADB Integration
禁用然后启用ADB集成
In Android Studio go to
在Android Studio中转到
- Menu -> Tools
- Android
- Enable ADB Integration (should be checked, click to remove check)
- Enable ADB Integration (should not be checked, click to add check)
菜单 - >工具
启用ADB集成(应选中,单击以删除检查)
启用ADB集成(不应选中,单击以添加检查)
Run your app again. Emulator that was previously missing from Run dialog should be available to be selected upon which to run your app.
再次运行您的应用。之前在“运行”对话框中缺少的仿真器应该可以选择运行您的应用程序。
#2
27
Try to kill the adb server and restart it.
尝试杀死adb服务器并重新启动它。
Locate your adb binary (linux/osx) or adb.exe (windows) and do:
找到你的adb二进制文件(linux / osx)或adb.exe(windows)并执行:
adb kill-server
adb start-server
this should fix your problem
这应该可以解决你的问题
Even if your problem still not solved then Restart emulator.
即使您的问题仍未解决,请重启模拟器。
#3
1
On Windows, running Android Studio with administrator permissions can help (in addition to restarting adb server).
在Windows上,运行具有管理员权限的Android Studio可以提供帮助(除了重新启动adb服务器)。
#4
1
Unchecking the "Enable ADB " worked for me
取消选中“启用ADB”对我有用
#1
41
Disable and then Enable ADB Integration
禁用然后启用ADB集成
In Android Studio go to
在Android Studio中转到
- Menu -> Tools
- Android
- Enable ADB Integration (should be checked, click to remove check)
- Enable ADB Integration (should not be checked, click to add check)
菜单 - >工具
启用ADB集成(应选中,单击以删除检查)
启用ADB集成(不应选中,单击以添加检查)
Run your app again. Emulator that was previously missing from Run dialog should be available to be selected upon which to run your app.
再次运行您的应用。之前在“运行”对话框中缺少的仿真器应该可以选择运行您的应用程序。
#2
27
Try to kill the adb server and restart it.
尝试杀死adb服务器并重新启动它。
Locate your adb binary (linux/osx) or adb.exe (windows) and do:
找到你的adb二进制文件(linux / osx)或adb.exe(windows)并执行:
adb kill-server
adb start-server
this should fix your problem
这应该可以解决你的问题
Even if your problem still not solved then Restart emulator.
即使您的问题仍未解决,请重启模拟器。
#3
1
On Windows, running Android Studio with administrator permissions can help (in addition to restarting adb server).
在Windows上,运行具有管理员权限的Android Studio可以提供帮助(除了重新启动adb服务器)。
#4
1
Unchecking the "Enable ADB " worked for me
取消选中“启用ADB”对我有用