Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Running app is too slow

When i run my app, it takes about 10 min to display on my phone. And every change in code also takes 10 min. What should I do? I am using Android Studio 2.0.

like image 895
M.K Avatar asked May 05 '16 06:05

M.K


People also ask

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.

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.


2 Answers

In android studio goto

  • File > Settings > Build,Execution,Deployment > Build Tools > Gradle and check the Offline Work option.
  • File > Settings > Build,Execution,Deployment > Compiler and check all four checkboxes.

If you are using android 2.0 or higher and if you have enabled Instant Run.

  • File > Settings > Build,Execution,Deployment > Instant
    Run
    and uncheck all four checkboxes. ** Sometimes enabling Instant run causes app to launch activity too slowly with white screen after running. Disabling instant run will remove the problem.

  • Restart Android studio

like image 138
Megha Maniar Avatar answered Oct 28 '22 17:10

Megha Maniar


Upgrade to the Android Studio 2.1. I also faced the same problem in 2.0

hope it will work.

like image 41
Manmohan Kumar Avatar answered Oct 28 '22 18:10

Manmohan Kumar