Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 3.0.1 makes app laggy and slow

Android Studio 3.0.1 makes my app laggy and slow!

I don't know why, but when I updated to version 3.0, and build my apps, they act laggy on opening activities especially if it is a list activity.

like image 964
MohammadL Avatar asked Feb 03 '18 18:02

MohammadL


People also ask

How do I fix lag on Android studio?

Android Studio needs at least 8 GB RAM to run better. Change your Hard Disk to SSD. Loading/Compiling/Designing/Writing time will be reduced even in 4GB RAM. Use Power Save mode from File Menu that will reduce lots of background work.

Why is Android Studio running so slow?

There may be many plugins in Android Studio that you are not using it. Disabling it will free up some space and reduce complex processes. To do so, Open Preferences >> Plugins and Disable the plugins you are not using.

Can we use Android Studio in 4GB RAM?

According to developers.android.com, minimum requirement for android studio is: 4 GB RAM minimum, 8 GB RAM recommended. 2 GB of available disk space minimum, 4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)

What causes apps to load slowly?

There is a cache partition on most Android devices that stores items that are accessed the most. After a while, it can become clogged with junk, causing slow performance. You can usually wipe the cache by accessing the recovery screen at startup. Each device has it's own method for accessing the screen.


1 Answers

Since Instant Run doesn't work fine with some SDKs, it might be slowing your application down. Try turning off Instant Run for your project:

To disable this default setting: Open the Settings or Preferences dialog: On Windows or Linux, select File > Settings from the menu bar. On Mac OSX, select Android Studio > Preferences from the menu bar.

Navigate to Build, Execution, Deployment > Instant Run.

Uncheck the box next to Restart activity on code changes.

like image 179
Akanshi Srivastava Avatar answered Oct 27 '22 18:10

Akanshi Srivastava