如何获取有关“等待目标设备上线"的更多信息?在 Android Studio 中? [英] How can I get more information about "Waiting for target device to come online" in Android Studio?

查看:48
本文介绍了如何获取有关“等待目标设备上线"的更多信息?在 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 Virtual Device Manager 下,您可以编辑虚拟设备上的配置,优化 Emulated Performance,将其设置为 -> Software.(请记住,这会使您的模拟器在模拟任何应用程序时运行缓慢.

  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 文件夹,因为我运行的是 64 位 ubuntu.就我而言,它位于 ~/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 :

//仔细检查这些是否可用

//Double Check to see if these are available

$ 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++

这篇关于如何获取有关“等待目标设备上线"的更多信息?在 Android Studio 中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆