emulator: emulator window was out of view and was

2019-01-11 18:47发布

问题:

After starting the android emulator I receive this warning:

emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
emulator: emulator window was out of view and was recentered

After this warning emulator is displayed without keyboard even I select the both checkbox "Hardware keyboard present" and "Display a skin with hardware controls"

回答1:

Check this path C:\Users\Username.android\avd** in this edit the file **emulator-user & set the window.x = 0 window.y = 0 it works for me.



回答2:

The alt-space trick works for me on Win7. First click the emulator (to make the window active). The alt-space. Choose "move". The 4-arrow pointer shows now, but won't work. However, use the keyboard to start moving it around. Once moved by using the keyboard, you can drag it across the screen with your mouse. Thanks for the tip!



回答3:

If you are using HAXM please update it to the latest version and run the HAXM installer again from the sdk directory. If the installer give error, go for a silent run using the bat file. This worked for me. In my case event modifying the user-emulation file was not working.



回答4:

100% Works

Follow this steps:

  1. Go to this directory or press Win+R then type this:
    (C:\Users\typeyourusername\.android\avd)
  2. Double click the folder (AVD name)
  3. Delete the file "emulator-user"
  4. Run your AVD or (if you already open avd) Close and rerun AVD


回答5:

From here

Solution: Edit the Device settings and change the RAM allocation to a lower number. If it was 1024 or More, reduce it to 512Mb or 256Mb

You can Change it in "Edit Android Virtual Device (AVD)" dialog's Hardware Section --> Device ram size