Why Android Studio emulator is extremely slow?
My Nexus 5X API 24 and 25 Emulators works well but Nexus 5X API 26 and above are very slow, I check memory and CPU costs in Android Profiler it shows much higher than others, even simulators have the same density.
I think currently we often choose latest Emulators (from API 26 - Android 8.0 and above) ONLY for testing code that relates to OS features changes, for stable and performance testing, we should choose Emulators equal or below API 25 - Android 7.1.
I reported this problem to Google, hope they will make some enhancements soon.
React Native. Why android emulator is so slow?
Another tip - there is an option to run without debugging etc for performance testing:
Open the menu by 'shaking' the device (cmd+m on Mac, ctrl+m on Windows) and open settings. Then set JS Dev Mode to false and you'll see the app operate at much closer performance to what it would on a real device. The only downside is you don't get your debug logs, but useful to see how the app is likely to behave on real devices.
UPDATE
If you still want to see console logs and other debug information, you can access these in Logcat inside Android Studio without sacrificing performance.
UPDATE 2
I have switched the an M1 Mac which runs on ARM architecture and the emulator is incredibly fast now. If you're going to be doing a lot of React Native development on a Mac I'd recommend getting an M1 Mac!
Related Topics
How to Validate Password Field in Android
Reload Recyclerview from Within the Adapter of the Recycler View
How to Check If the Current Activity Has a Dialog in Front
Waiting Till the Async Task Finish Its Work
How to Set Android_Ndk_Home So That Android Studio Does Not Ask for Ndk Location
How to Scroll Scrollview to Bottom Programmatically in Android
Prevent Screen Rotation on Android
How to Remove the Unnecessary Top Padding of the Navigation View
How to Separate a Country Code from a Phone Number in Android
Adb Is Not Detecting My Android Device on Ubuntu
Android: Open a Pdf from My App Using the Built in Pdf Viewer
How to Enable/Disable Log Levels in Android
Allow User to Select Camera or Gallery For Image
Gradle Implementation VS API Configuration