Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 3.0.1. Very slow work on android emulator

Windows 10 (64bit)

Processor: Intel Core 3.10 GHz

RAM 8GB

Android Studio 3.0.1

Java 1.8

Gradle 4.1.

In c:\Users\myuser.AndroidStudio3.0\studio64.exe.vmoptions

# custom Android Studio VM options, see https://developer.android.com/studio/intro/studio-config.html
-server
-Xms256m
-Xmx3g
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djna.nosys=true
-Djna.boot.library.path=

-da

In gradle.properties:

org.gradle.jvmargs=-Xmx1536m

When I run my application on device ---> all work fine. Nice.

But when I start on this emulator (API 27): avd

all work very slow.

Here my task manager (when emulator was started).

taskmanager

As you can is available ONLY 638 MB

How I can fix this?

like image 265
Alex Avatar asked Nov 07 '22 12:11

Alex


1 Answers

Check sdk is it uses Intel HAXM!

http://joxi.ru/Vm6oZpbcxWZZN2

and add more RAM and VM Heap, Emulated Performance Graphics is Automatic

enter image description here

Or use template device - with high-performance in API 27 case - like Google Pixel series.

like image 187
Vladyslav Berdnikov Avatar answered Nov 23 '22 08:11

Vladyslav Berdnikov