我如何获得有关“等待目标设备上线"的更多信息.在Android Studio中?

问题描述:

我在未连接任何设备的Ubuntu 16.10上运行Android Studio 2.3.选择运行>运行应用程序"以在仿真设备中运行该应用程序时,我看到以下通知,但目标设备从未联机.

I run Android Studio 2.3 on Ubuntu 16.10 without any devices attached. When selecting Run > Run 'app' to run the app inside an emulated device, I get to see the following notification but the target device never comes online.

如果我在终端中运行adb devices,我将看到以下内容:

If I run adb devices in the terminal, I get to see this:

我的Android Studio版本:

My version of Android Studio:

今天上午,在ubuntu和android studio上出现了相同的问题,我做的两种方法对我有帮助,我侦查第二种方法:

Had the same problem this morning, same version on ubuntu and android studio, 2 ways i did which helped me, i recon the second method :

  1. 在Android虚拟设备管理器下,您可以在虚拟设备上编辑配置,对仿真性能"进行细化,将其设置为->软件. (请记住,这将使您的模拟器在模拟任何应用程序时似乎运行缓慢).

  1. Under the Android Virtual Device Manager, you can edit the configuration on the virtual device, fine the Emulated Performance, Set it to -> Software. (Bare in mind that this will make your emulator seems running slow while emulating any app).

第二种方法是找到lib64文件夹,因为我正在运行ubuntu 64位.就我而言,它位于〜/Android/Sdk/emulator/lib64下.然后在终端中运行以下命令:

Second way is to locate lib64 folder since i am running ubuntu 64 bit. In my case, its located under ~/Android/Sdk/emulator/lib64. Then run the following commands in terminal :

//仔细检查是否可用

$ sudo apt-get install lib64stdc ++ 6:i386

$ sudo apt-get install lib64stdc++6:i386

$ sudo apt-get install mesa-utils

$ sudo apt-get install mesa-utils

//导航至〜/Android/Sdk/emulator/lib64文件夹

//Navigate to the ~/Android/Sdk/emulator/lib64 folder

$ mv libstdc ++/libstdc ++.bak

$ mv libstdc++/ libstdc++.bak

$ ln -s/usr/lib64/libstdc++.so.6 libstdc ++

$ ln -s /usr/lib64/libstdc++.so.6 libstdc++