Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get more information about "Waiting for target device to come online" in Android Studio?

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.

enter image description here

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

enter image description here

My version of Android Studio:

enter image description here

like image 433
orschiro Avatar asked Dec 01 '22 15:12

orschiro


2 Answers

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. 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).

  2. 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 mesa-utils

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

$ mv libstdc++/ libstdc++.bak

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

like image 67
Mark Warren J Avatar answered Dec 04 '22 14:12

Mark Warren J


I solved it with just modifying a configuration on AVD.

1) Go to the AVD Manager

2) Click "Edit this AVD" Button which seems like pencil.

3) Set the graphics as a software.

like image 21
Jun Avatar answered Dec 04 '22 12:12

Jun