Errors when starting the emulator in Android Studio

When starting the Android Virtual Device Manager , the following error appears:

> C:\Users\yates\AppData\Local\Android\sdk\tools\emulator.exe -netdelay > none -netspeed full -avd Nexus_5_API_23_x86 <br/> init: Could not find > wglGetExtensionsStringARB! <br/> emulator: WARNING: Classic qemu does > not support SMP. The hw.cpu.ncore option from your config file is > ignored.<br/> getGLES1ExtensionString: Could not find GLES 1.x > config!<br/> emulator: device fd:704<br/> Failed to obtain GLES 1.x > extensions string!<br/> HAXM is working and emulator runs in fast virt > mode<br/> Could not initialize emulated framebufferCannot set up guest > memory 'pc.ram': Invalid argument 

Please don't tell me

  • un-check "GPU HOST": This is already done. This indicates the screen resolution. And he continues to give me the same error, even when I change the screen resolution.

  • install HAXM: I already did it.

  • to update my graphics drivers: I do not have any additional graphics cards in my system. "STANDARD VGA GRAPHIC ADAPTER" is the only thing that has been installed and updated on my system.

Emulator configuration:

Name: Nexus_4_API_23

CPU / ABI: Google API for Intel Atom (x86)

Path: C: \ Users \ yates.android \ avd \ Nexus_4_API_23.avd

Target: Google API (API Level 23)

Leather: nexus_4

SD card: C: \ Users \ yates.android \ avd \ Nexus_4_API_23.avd \ sdcard.img

Snapshot: no

hw.dPad: no

runtime.network.speed: full

hw.accelerometer: yes

hw.device.name: Nexus 4

vm.heapSize: 64

skin.dynamic: yes

hw.device.manufacturer: Google

hw.gps: yes

hw.audioInput: yes

tag.id: google_apis

hw.camera.back: none

hw.mainKeys: no

AvdId: Nexus_4_API_23

hw.camera.front: none

hw.lcd.density: 320

runtime.scalefactor: auto

avd.ini.displayname: API Nexus 4 API 23

snapshot.present: no

hw.device.hash2: MD5: 6930e145748b87e87d3f40cabd140a41

hw.ramSize: 864

hw.trackBall: no

hw.battery: yes

hw.sdCard: yes

tag.display: Google API

runtime.network.latency: none

hw.keyboard: yes

hw.sensors.proximity: yes

disk.dataPartition.size: 200M

hw.sensors.orientation: yes

avd.ini.encoding: UTF-8

hw.gpu.enabled: no

+5
source share
2 answers

You need to reduce the RAM of your emulator. Even if you have enough memory, it is recommended that you have 1 GB or less than 1 GB of memory. Since it automatically allocates 864MB, edit your emulator in the AVD manager and reduce the AVD RAM.

Open AVD Manager and select your device and click the "Change" button.

Then, in “Memory Settings”, find the RAM parameter and, for example, set it to 512 or 864. Click “OK” to save the current configuration and restart the application or AVD.

You should also not specify the RAM size for your emulator that exceeds the HAXM memory you allocated. Since you run the emulator in HAXM mode, it will run faster than usual. Therefore, you do not need to worry about the RAM of your device.

0
source

In Android Studio:

  • Open Avd Manager

  • Change your AVD configuration settings

  • Click "Show advanced settings"

  • In the "Memory and memory" section, reduce the size of RAM

0
source

Source: https://habr.com/ru/post/1247246/


All Articles