Can't run emulators on a PC with Core 2 cpu - android-emulator

For the last few days I had been searching all over the internet for an answer as to why I can't run emulators on my computer. Turns out that Intel HAXM is not supported on the Core 2 architecture.
Does anyone know if I can somehow make emulators run, despite those limitations?

Turns out there really isn't a workaround for this problem. The only solution is to simply use a phisical device.

Related

Emulator doesn't work with AMD Ryzen and Windows home

I own a laptop which has amd ryzen 5 CPU in it. Unfortunately the emulator doesn't work. And I couldn't enable Hyper-V because my Windows is Windows 10 Home. Now I am using arm emulator, but it is too slow to work with. Is there any other option to solve this problem?
The best option, imo, is to use visual studio emulator. In order to work you need to add a line to Windows registry (that was my case, at least), and then it will run in lollipop or marshmallow, at best, I think. Anyway, it's pretty fast.
Other than that, read this as it may be useful: https://android-developers.googleblog.com/2018/07/android-emulator-amd-processor-hyper-v.html?m=1
An alternative option would be to switch to Linux distribution, like Ubuntu.

Android emulator is very slow even after installing intel HAXM

my pc has 8 gb ram, intel i5-4rth gen , 2 gb nividia card.
win 7
my emulator of API 21 is very slow and laggy even after installing intel HAXM manually.
I have done everything that has been discussed here. please suggest me something.
In my case the problem was Avast's "Hardware assisted Virtualization". When I disabled it by going to Avast>Settings>Troubleshooting>Uncheck "Enable hardware-assisted virtualization" and rebooted the PC emulator became super fast and responsive.
Uncheck "Enable hardware-assisted virtualization" from Avast>Settings>Troubleshooting
Reason: Only one software can use VT-x at a time. This is the reason why we have to disable Hyper-V before using HAXM.
If you are using another anti-virus or some software that is using Hardware virtualization feature, try disabling it.
I`m have same issue (i5, integrated video, W10x64), and today was found a way to fix:
add "-gpu guest" parameter to emulator.exe
Unfortunately, it should be started from a .bat file or command prompt.
Whole launch string look like
emulator #avd_name -accel on -gpu guest
Hope this helps
After the download from the SDK manager you have to launch the IntelHAXM.exe that you can find inside the Android SDK manager folder, precisely in
extras/intel/Hardware_Accelerated_Execution_Manager

Emulator in AMD Processor is not working

I using AMD processor. I have installed everything related to eclipse perfectly. But I'm unable to start the emulator. program is hang and keep waiting for adb forever. The same issue in android studio also. Please give a solution.
I'm using a Android Studio on an HP x360, which is a nice little laptop but has a puny processor:). I spent ages getting the Intel Hax virtual machine thingy installed on my machine, as well as configuring bios (which I found AVAST blocked changes to, so had to uninstall it).
After probably hours this week (I'm new to Android) waiting for the emulator to do it's thing, start up, load program, and eat memory, I decided to plug in my phone (Moto-e).
This has made a massive improvement! Only takes a minute to compile and run now! You also have piece of mind that your app will run in the real world.
So as a newb to Android, I'd say don't bother with the emulator.... plug a real device in.
See here for setting up HAXM, if you have trouble installing, it may be antivirus etc blocking it....
Intel HAXM
All the best.
try these threads Virtualization threads

How to make an AVD with > 768MB RAM To emulate Galaxy devices

I am trying to emulate the Galaxy Note 2 which contains 2GiB RAM and some custom hardware like the s-pen and TouchWiz. I created an emulator with 2GB to start with. The emulator won't launch, in fact it is crashing eclipse. I would also like to emulate multi-screen TouchWiz support. I don't see any info anywhere on emulating custom platforms like TouchWiz. Any ideas? I need a decent testing platform for the Galaxy series, but I can't even get basic android working.
edit: The Samsung dev page shows this setup: http://developer.samsung.com/forum/thread/emulator-size-for-galaxy-note-2-/77/178557
Is this a lack of available ram?
using the suggestion of manually adding "mb" behind the memory size in your configuration file (as suggested in this thread: Android: failed to allocate memory ) (located at: %USERPROFILE%/.android/avd/name-of-your-avd/config.ini) has solved the 768mb problem here!
example that now works on my win7 x64 ultimate os -with- dedicated gpu;
avd.ini.encoding=ISO-8859-1
hw.sdCard=no
hw.device.manufacturer=Google
hw.mainKeys=no
hw.lcd.density=320
hw.accelerometer=yes
hw.dPad=no
hw.cpu.arch=x86
skin.name=720x1280
abi.type=x86
hw.device.hash=1197498893
hw.trackBall=no
hw.device.name=Galaxy Nexus
hw.camera.back=none
hw.sensors.proximity=yes
hw.battery=yes
disk.dataPartition.size=512M
hw.gpu.enabled=yes
image.sysdir.1=system-images\android-18\x86\
hw.audioInput=yes
hw.sensors.orientation=yes
hw.camera.front=none
hw.gps=yes
skin.dynamic=yes
skin.path=720x1280
hw.keyboard=yes
vm.heapSize=128
hw.ramSize=2048mb
I have tested this on two machines, my desktop and laptop both running Windows 7 X64 Ultimate
The Laptop has an Intel I7-4702MQ with 12GB ram and GeForce GTX765M
The Desktop has an Intel I7-3820 with 32GB ram and has Ati 6950 in Crossfire and an Nvidia GTX560Ti (normally for physx).
The desktop only has issues in reliably starting the gpu acceleration while using crossfire, other then that i've had no issues with the emulator at all and even managed to assign 4096mb RAM with a 256VM Heap (however increasing the VM-heap above 128 seems to slowdown emulator initiation tremendously here)
On the desktop i also tested the 4096MB setup while even using a RAMDISK but this didn't increase performance too much.
Best settings overall (in my experience) in startup and responsiveness after just a few tests;
2048 with 128mb VM Heap size, gpu acceleration enabled.
Hope this helps out others!
I actually had a similar problem when running on Windows 7. When I relaunched Android studio with administrator privileges it worked. Otherwise I couldn't even open the AVD manager.
This question may be a duplicate of:
Android: failed to allocate memory
I don't presume you would NOT do this, but I'm just going to say it anyway...
Check the details of the correct answer, but especially check the comments for the correct answer.
Seriously, I hope this helps. Android and Eclipse issues have been a problem for me in the past until I learned to crush them with a Zen-like attitude and much exhaustive research and trial-and-error.

iPhone dev on Linux

Actually I have read about that I can write Objective-C app on Linux (using GNUStep).
But my question is, Am I will be able to develop completely iPhone app on Linux machine?
Or I'll need eventually need to use Mac machine?
Especially when I read that there are some some syntax diffs between NeXT/Apple and GCC (according to http://en.wikipedia.org/wiki/Objective-C)
Short answer - yes it can be done but is not as easy as the Mac way.
Duplicate of how-much-of-an-iphone-app-can-be-developed-and-tested-on-linux, which will lead you to still more links, and 75-100 others.
I'd try giving VirtualBox and a Mac OS X guest a shot. Some people say they've been able to run it.
http://forums.virtualbox.org/viewtopic.php?t=2076
If you manage to run it, then you could install X-Code and things should be a lot easier.