Why emulator is very slow in Android Studio?

后端 未结 20 2716
小鲜肉
小鲜肉 2020-11-29 03:01

I just setup Android Studio on my PC, which is new launch to develop Android application.

My problem is that, when I try to run my small app in emulator, it take to

相关标签:
20条回答
  • 2020-11-29 03:14

    The emulator is much much faster when running on Linux. In Ubuntu 13.04, it launches within 10 seconds, and it runs nearly as smoothly as on a physical device. I haven't been able to reproduce the performance on Windows.

    EDIT: Actually, after the first boot, when using the Atom arch. and GPU acceleration, the Windows emulator runs nearly as well as in Linux.

    0 讨论(0)
  • 2020-11-29 03:17

    As @Xavi mentioned, Android Emulator is normally slow and lags a lot. Either test your app on an actual device or use an alternative emulator such as BlueStack or Android-X86.

    Another tip for using emulator is to not close if you ain't done testing your application. Just leave it open. In this case you skip the time it takes to launch.

    0 讨论(0)
  • 2020-11-29 03:17

    Google Launches Android Studio 2.0 With Improved Android Emulator And New Instant Run Feature

    New Features in Android Studio 2.0 :

    1.Instant Run: Faster Build & Deploy

    You can quickly see your changes running on your device or emulator.
    Enable Instant Run follow this steps:

    1.open Settings/Preferences
    2.go to Build, Execution, Deployment
    3.Instant Run. Click on Enable Instant

    Please see this video of Instant Run --> Instant Run

    2.GPU Profiler

    For developers who build graphics-intensive apps and games, the Studio now also includes a new GPU profiler. This will allow developers to see exactly what’s happening every time the screen draws a new image to trace performance issues.

    click here for more details about the GPU Profiler tool

    Getting Started Guide for Android Emulator Preview

    For more detail about android 2.0 Biggest and best update of 2015 you can see very good article Author by @nuuneoi :

    First Look at Android Emulator 2.0, the biggest and the best update yet in years

    0 讨论(0)
  • 2020-11-29 03:20

    The new Android Studio incorporates very significant performance improvements for the AVDs (emulated devices).

    But when you initially install the Android Studio (or, when you update to a new version, such as Android Studio 2.0, which was recently released), the most important performance feature (at least if running on a Windows PC) is turned off by default. This is the HAXM emulator accelerator.

    Open the Android SDK from the studio by selecting its icon from the top of the display (near the right side of the icons there), then select the SDKTools tab, and then check the box for the Intel x86 Emulator Accelerator (HAXM installer), click OK. Follow instructions to install the accelerator.

    Be sure to completely exit Android Studio after installing, and then go to your SDK folder (C:\users\username\AppData\Local\extras\intel\Hardware_Accelerated_Execution_Manager, if you accepted the defaults). In this directory Go to extras\intel\Hardware_Accelerated_Execution_Manager and run the file named "intelhaxm-android.exe".

    Then, re-enter the Studio, before running the AVD again.

    Also, I found that when I updated from Android Studio 1.5 to version 2.0, I had to create entirely new AVDs, because all of my old ones ran so slowly as to be unusable (e.g., they were still booting up after five minutes - I never got one to completely boot). As soon as I created new ones, they ran quite well.

    0 讨论(0)
  • 2020-11-29 03:20

    A quick fix if using Android Studio (or Eclipse) is to disable the boot animation.

    1) Select Run > Edit Configurations

    2) Android Application > YOURAPP

    3) Select the "Emulator" tab and check the "Disable boot animation"

    This is will stop the "ANDROID" image from loading and boot directly to the lock screen, then keep your the emulator open. Also, to avoid problems, don't rotate the device before launch (Cmnd + Ctrl + F11), and don't try to run the app more than once during installation.

    0 讨论(0)
  • 2020-11-29 03:21

    Use x86 images and download "Intel Hardware Accelerated Execution Manager" from the sdk manager.

    See here how to enable it: http://developer.android.com/tools/devices/emulator.html#accel-vm

    Your emulator will be super fast!

    0 讨论(0)
提交回复
热议问题