Android studio:模拟器正在运行但未在Run App中显示“选择正在运行的设备”

时间:2021-10-28 18:54:02

I have launched my emulator via the AVD manager and once it's running I have clicked on run app. I have waited a couple of minutes for my running device to show up in choose a running device but the window always stays blank.

我已经通过AVD管理器启动了我的模拟器,一旦它运行,我点击了运行应用程序。我已经等了几分钟让我的运行设备出现在选择正在运行的设备但窗口始终保持空白。

Android studio:模拟器正在运行但未在Run App中显示“选择正在运行的设备”

9 个解决方案

#1


37  

Probably the project you are running is not compatible (API version/Hardware requirements) with the emulator settings. Check in your build.gradle file if the targetSDK and minimumSdk version is lower or equal to the sdk version of your Emulator.

您运行的项目可能与仿真器设置不兼容(API版本/硬件要求)。如果targetSDK和minimumSdk版本低于或等于模拟器的sdk版本,请检入build.gradle文件。

You should also uncheck Tools > Android > Enable ADB Integration

您还应取消选中工具> Android>启用ADB集成

If your case is different then restart your Android Studio and run the emulator again.

如果您的情况不同,请重新启动Android Studio并再次运行模拟器。

#2


15  

This thread helped me to solve my problem, in particular this answer:

这个帖子帮助我解决了我的问题,特别是这个答案:

  • In Android Studio go to Menu -> Tools
  • 在Android Studio中,转到“菜单” - >“工具”

  • Android
  • Uncheck Enable ADB Integration
  • 取消选中“启用ADB集成”

#3


2  

For anyone else having the issue - none of the answers provided worked for me.

对于其他任何有问题的人 - 所提供的答案都不适用于我。

My case may be different to others but I had Android Studio installed first which installs the SDK by default to: C:\Users\[user]\AppData\Local\Android\sdk. We then decided to use Xamarin for our projects, so Xamarin was installed and installed an additional SDK by default, located here: C:\Program Files (x86)\Android\android-sdk.

我的情况可能与其他人有所不同,但我先安装了Android Studio,默认安装SDK:C:\ Users \ [user] \ AppData \ Local \ Android \ sdk。然后我们决定将Xamarin用于我们的项目,因此Xamarin默认安装并安装了一个额外的SDK,位于:C:\ Program Files(x86)\ Android \ android-sdk。

Changing Xamarin to match the same SDK path worked for me which I did in the registry (although through the VS settings I'd guess it's the same):

更改Xamarin以匹配我在注册表中执行的相同SDK路径(虽然通过VS设置我猜它是相同的):

\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Android SDK Tools\Path

\ HKEY_LOCAL_MACHINE \ SOFTWARE \ WOW6432Node \ Android SDK Tools \ Path

Change the path to match the Android Studio SDK path, close everything, start the VS Emulator, run Android Studio, ensure ADB integration is off and try. It worked for me.

更改路径以匹配Android Studio SDK路径,关闭所有内容,启动VS Emulator,运行Android Studio,确保ADB集成已关闭并尝试。它对我有用。

#4


1  

Your adb connection is broken.

您的adb连接已损坏。

close eclipse

open cmd-prompt type adb kill-server then adb start-server

打开cmd-prompt类型adb kill-server然后adb start-server

reopen eclipse

run the project!

运行项目!

#5


1  

If you uncheck the ADB Integration, you cannot use the debug any more.You may just restart the adb server, run

如果取消选中ADB集成,则无法再使用调试。您可以只重新启动adb服务器,运行

$adb kill-server
$adb start-server

in Terminal to restart the adb server without restarting the Android Studio. Then the emulator shows up.

在终端中重新启动adb服务器而不重新启动Android Studio。然后模拟器出现。

#6


0  

  1. start device from genymotion button (have to install genymotion before and setup genymotion folder location on settings)
  2. 从genymotion按钮启动设备(必须先安装genymotion并在设置上设置genymotion文件夹位置)

  3. run application
  4. choose genymotion running device
  5. 选择genymotion运行设备

#7


0  

try to open the emulator and run it parallel with android studio/eclipse and the option will be displayed to select in the choose the device(emuator name, mine is Genymotion).

尝试打开模拟器并与android studio / eclipse并行运行,将显示选项以选择设备(emuator名称,我的是Genymotion)。

#8


0  

Check the android path of the emulator.

检查模拟器的android路径。

I had to change the registry in here:

我不得不在这里更改注册表:

 HKEY_LOCAL_MACHINE > SOFTWARE > WOW6432Node > Android SDK Tools

to the actual path of the sdk location (which can be found in android studio: settings-> System Settings -> Android SDK)

到sdk位置的实际路径(可以在android studio中找到:settings-> System Settings - > Android SDK)

All the credit goes to the author of this blogpost www.clearlyagileinc.com/

所有的功劳都归功于这篇博文的作者www.clearlyagileinc.com/

#9


-5  

in your device you want to run app on Go to settings About device >> Build number triple clicks or more and back to settings you will found "Developer options" appear go to and click on "USB debugging" Done

在您的设备中,您想要运行应用程序转到设置关于设备>>内部版本号三次点击或更多并返回到您将找到的“开发人员选项”设置转到并单击“USB调试”完成

#1


37  

Probably the project you are running is not compatible (API version/Hardware requirements) with the emulator settings. Check in your build.gradle file if the targetSDK and minimumSdk version is lower or equal to the sdk version of your Emulator.

您运行的项目可能与仿真器设置不兼容(API版本/硬件要求)。如果targetSDK和minimumSdk版本低于或等于模拟器的sdk版本,请检入build.gradle文件。

You should also uncheck Tools > Android > Enable ADB Integration

您还应取消选中工具> Android>启用ADB集成

If your case is different then restart your Android Studio and run the emulator again.

如果您的情况不同,请重新启动Android Studio并再次运行模拟器。

#2


15  

This thread helped me to solve my problem, in particular this answer:

这个帖子帮助我解决了我的问题,特别是这个答案:

  • In Android Studio go to Menu -> Tools
  • 在Android Studio中,转到“菜单” - >“工具”

  • Android
  • Uncheck Enable ADB Integration
  • 取消选中“启用ADB集成”

#3


2  

For anyone else having the issue - none of the answers provided worked for me.

对于其他任何有问题的人 - 所提供的答案都不适用于我。

My case may be different to others but I had Android Studio installed first which installs the SDK by default to: C:\Users\[user]\AppData\Local\Android\sdk. We then decided to use Xamarin for our projects, so Xamarin was installed and installed an additional SDK by default, located here: C:\Program Files (x86)\Android\android-sdk.

我的情况可能与其他人有所不同,但我先安装了Android Studio,默认安装SDK:C:\ Users \ [user] \ AppData \ Local \ Android \ sdk。然后我们决定将Xamarin用于我们的项目,因此Xamarin默认安装并安装了一个额外的SDK,位于:C:\ Program Files(x86)\ Android \ android-sdk。

Changing Xamarin to match the same SDK path worked for me which I did in the registry (although through the VS settings I'd guess it's the same):

更改Xamarin以匹配我在注册表中执行的相同SDK路径(虽然通过VS设置我猜它是相同的):

\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Android SDK Tools\Path

\ HKEY_LOCAL_MACHINE \ SOFTWARE \ WOW6432Node \ Android SDK Tools \ Path

Change the path to match the Android Studio SDK path, close everything, start the VS Emulator, run Android Studio, ensure ADB integration is off and try. It worked for me.

更改路径以匹配Android Studio SDK路径,关闭所有内容,启动VS Emulator,运行Android Studio,确保ADB集成已关闭并尝试。它对我有用。

#4


1  

Your adb connection is broken.

您的adb连接已损坏。

close eclipse

open cmd-prompt type adb kill-server then adb start-server

打开cmd-prompt类型adb kill-server然后adb start-server

reopen eclipse

run the project!

运行项目!

#5


1  

If you uncheck the ADB Integration, you cannot use the debug any more.You may just restart the adb server, run

如果取消选中ADB集成,则无法再使用调试。您可以只重新启动adb服务器,运行

$adb kill-server
$adb start-server

in Terminal to restart the adb server without restarting the Android Studio. Then the emulator shows up.

在终端中重新启动adb服务器而不重新启动Android Studio。然后模拟器出现。

#6


0  

  1. start device from genymotion button (have to install genymotion before and setup genymotion folder location on settings)
  2. 从genymotion按钮启动设备(必须先安装genymotion并在设置上设置genymotion文件夹位置)

  3. run application
  4. choose genymotion running device
  5. 选择genymotion运行设备

#7


0  

try to open the emulator and run it parallel with android studio/eclipse and the option will be displayed to select in the choose the device(emuator name, mine is Genymotion).

尝试打开模拟器并与android studio / eclipse并行运行,将显示选项以选择设备(emuator名称,我的是Genymotion)。

#8


0  

Check the android path of the emulator.

检查模拟器的android路径。

I had to change the registry in here:

我不得不在这里更改注册表:

 HKEY_LOCAL_MACHINE > SOFTWARE > WOW6432Node > Android SDK Tools

to the actual path of the sdk location (which can be found in android studio: settings-> System Settings -> Android SDK)

到sdk位置的实际路径(可以在android studio中找到:settings-> System Settings - > Android SDK)

All the credit goes to the author of this blogpost www.clearlyagileinc.com/

所有的功劳都归功于这篇博文的作者www.clearlyagileinc.com/

#9


-5  

in your device you want to run app on Go to settings About device >> Build number triple clicks or more and back to settings you will found "Developer options" appear go to and click on "USB debugging" Done

在您的设备中,您想要运行应用程序转到设置关于设备>>内部版本号三次点击或更多并返回到您将找到的“开发人员选项”设置转到并单击“USB调试”完成