Android Emulator doesn't start for emulating d

2019-07-08 04:38发布

问题:

I'm experiencing a problem with the Android Emulator: when I try to run an emulated device with an Android API version 22 or lower (Lollipop or older), the Emulator doesn't show up and on Android Studio the message "waiting target device to come online" stands still.

I had the same problem previously with all the devices emulated, but from when I switched the graphics rendering to "software" instead of "automatic", the problem doesn't show up on the emulated devices with Android API 23 or more (Marshmallow or newer) but is still there for all the emulated devices with Android API 22 or less (Lollipop or older).

I tried with many devices and API emulation

  • Nexus 5 API 25 (works)
  • Nexus 5 API 24 (works)
  • Nexus 5 API 23 (works)
  • Nexus 5 API 22 (doesn't work)
  • Nexus 5 API 21 (doesn't work)
  • Nexus 4 API 22 (doesn't work)
  • Nexus One API 22 (doesn't work)
  • Pixel API 25 (works)
  • Pixel API 24 (works)
  • Pixel API 23 (works)

I'm running Android Studio 2.3.1 on Ubuntu 16.10.

I've already made many attempt trying some possible solutions, suggested both here on Stack Overflow and also elsewhere, like:

  • Switching graphics rendering from "automatics" to "software" (it works, but just for emulations with Android versions >= 6.0 );
  • Going in Settings -> Appearance and Behavior -> System settings -> Android SDK -> SDK tools -> to see if the "Android Emulator was already checked" (and yes, is checked);
  • Check if I have dockers opened and eventually close them;
  • Deleted all the emulators and re-created;
  • Reboot the PC many times.

Nothing seems to do the job until now.

Are there possible solutions or people that already had this problem?

Thanks in Advance, Alessandro

Update - 24/07/2017
One week ago, I've updated the Android Emulator to the 26.1.2 version and since there, all the emulated devices needs to be started from command line (in other words, the GUI commands for starting emulated devices doesn't work for any device no more).
The situation has got worse, considering that this way I'm unable to use the terminal in Android Studio.
If I have other updates, I will write them here.