本文介绍了更新至Android Studio 3.5版本后的新问题。运行应用程序(SHIFT-F10)时,不会出现ADB设备选择屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新问题:在Android Studio 3.5上运行应用程序时,不再显示设备选择屏幕。默认为随机设备。

New Issue: When Running app on Android Studio 3.5 the device selection screen no longer appears. It defaults to "random" device.

试图在Google上寻找答案。不行尝试在设置中查找。不行在Android Studio中搜索的菜单。

Tried looking for answers on Google. No go. Tried looking in Settings. No go. Searched menus in Android Studio. No go.

期望出现设备选择屏幕(物理设备和仿真设备)。它不是。只是默认使用看似随机的设备。所有仿真器都可以正常工作,并且与我的物理设备一样都存在。

Expected the device selection screen (Physical and emulated devices) to come up. It does not. Just defaults to seemingly random device. All emulators work and are present as are my physical devices.

我的问题是:如何选择要部署到的设备。已经提到了一个下拉菜单,但我找不到它。

My question is: How do I select which device I wish to deploy to. A drop down menu has been mentioned, but I am unable to locate it.

推荐答案

您好,欢迎您使用Stack Overflow!如Android Studio的 部分所述,设备选择器现在是组合框/下拉菜单。

Hello and welcome to Stack Overflow! As outlined in the "What's new" section of Android Studio, the Device selector is now a "combo box/dropdown" menu.

是否可以禁用此选项,这是我到目前为止找不到的东西。

Whether this option can be disabled or not, is something I couldn't find so far.

它比旧的对话框好,但是除非您用鼠标单击,否则它会使动态设备的选择更加困难。在这方面,我相信新控件比以前的3.4.x Android Studio具有更差的对话框选择器更糟糕。

It's better than the old dialog, but it makes "dynamic" device selection harder unless you go with your mouse... click on it.. you get the picture. In that regard, I believe the new control is worse than the previous 3.4.x Android Studio with the all-known dialog chooser.

在专业方面,您可以选择多个,并且shift-F10(默认在Windows / Linux上运行)会将apk发送到所有选定的设备。

On the pro side, you can select multiple ones, and shift-F10 (default run on Windows/Linux), will send the apk to all selected devices.

因此,对于大多数用例(在1个或更多设备上重新运行),这是一个很好的改进。即使仿真器没有运行。

So for the most use case (re-running on 1 or more devices) this is a good improvement. Even if the emulator is not running.

但是对于其他情况,如果您要更改使用的设备,这是可用性回归(据我所知)因为您不能轻松集中注意力,请使用键盘对其进行更改然后再运行。所以……就是这样。

But for the other cases where you are changing which device you use, this is a usability regression, (as far as I know) because you can't easily focus that, change it with the keyboard, and run. So... there's that.

我们将看看Google是否对此做了某些事情,或者提供了一种以类似的方式用键盘导航此方法的方法。以前是可能的。

We'll see if Google does something about this or provides a way to "navigate" this with the keyboard in a fancy way like it was possible before.

对于有价值的东西,在Google跟踪器中。

For what is worth, here's the Issue in the Google Tracker.

这篇关于更新至Android Studio 3.5版本后的新问题。运行应用程序(SHIFT-F10)时,不会出现ADB设备选择屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 12:10