Reputation: 159
hi im new to to android studio and programming. i wrote a simple hello world program, when i click on run and select the default avd device it gives me the following error
"D:\Users\Brian Fernandes\AppData\Local\Android\sdk\tools\emulator.exe" -avd Nexus_5_API_21_x86 -netspeed full -netdelay none
emulator: WARNING: Requested RAM size of 1536MB is too large for your environment, and is reduced to 1152MB.
Cannot set up guest memory 'android_arm': Invalid argument
Error accepting connection, aborting
i reduced the ram now i get the below error
Cannot launch AVD in emulator. Output: emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensure Intel HAXM is properly installed and usable. CPU acceleration status: HAX kernel module is not installed!
i have installed haxm yet its giving me this error
Help me resolve the error.
Upvotes: 2
Views: 507
Reputation: 1415
First reduce the size used by this emulator, or try to use an other emulator system image with minimal config to test your Hello Android application.
I advice you to use an Android powered device later when you get ready and when u're a ninja android developer :)
Upvotes: 1
Reputation: 2129
Reduce the RAM for emulator in between 512 MB to 1 GB.
In a Windows environment you cannot use more than 1 GB of ram for emulator.
Upvotes: 0
Reputation: 338
Personally I've had a lot of problems with AVD emulators. I'd try out genymotion as an alternative. https://www.genymotion.com/#!/ This is what I use for all my android development and it's never given me any errors and is faster than avd.
Upvotes: 0