News for hackers. Stuff that matters.
Re:Android Studio 4.0 by serf on Thursday May 28, 2020 @08:11PM (#23344731)
>My laptop is Core2Duo with 4GB RAM

i'm with you that android emulation is pretty slow, but your machine is reaching near parity with many of the devices that run the platform you're trying to emulate.

it's nearly always the case that an emulator host has to have a significant performance margin over the guest just to account for the inaccuracies/inconsistencies/hacks that are involved in mimicking a system on a dissimilar hardware platform.

Re:Android Studio 4.0 by qwerty456127 on Thursday May 28, 2020 @08:17PM (#23344785)
I would be Ok emulating the slowest Android phone of those which existed some years ago - I bet it was much weaker than my actual laptop yet not nearly as slow as an emulation I actually get. I'm not interested in using NDK, 3D graphics or any bells-and-whistles in my Android apps.
Re:Android Studio 4.0 by kllrnohj on Thursday May 28, 2020 @08:44PM (#23344998)
Make sure to customize the AVD then and use a much lower resolution. If you pick a default like the Pixel 3 it'll be running at a resolution that really doesn't work if you're trying to share 4GB of RAM with a host OS, IDE, and whatever else you have open.

EDIT: Also make sure you've enabled VT-x if your laptop has it.

Re:Android Studio 4.0 by kelnos on Thursday May 28, 2020 @09:18PM (#23345246)
If you're targeting a fairly old Android release, that would probably be ok. But I'd bet to get decent performance on your hardware, you'd have to emulate a low-RAM, single-core phone that probably wouldn't be able to run a current Android release.