Android Studio Instant Run - override and rebuild the full application

I like the Instant Run feature for Android Studio 2.0. For little tricks in the current activity is great. However, sometimes I need to make a customization in an earlier activity, and Instant Run either does not apply this change, or simply does not restart the previous activity. I would like to be able to launch Instant Run instantly, but sometimes I just want to tell AS to simply reload the full application and not use Instant Run.

Is there a quick way to do this? I saw somewhere that for this there is a three-stage checklist - Stop, Rebuild, Debug. But even that didn’t work and, obviously, was slower than the old one-click method.

+6
source share
1 answer

This is because your modified code no longer ran, so it is not an error as such.

In the stable version of Android Studio 2.0, we added a restart button enter image description here on the toolbar. If you click on it, it will push your changes and restart your application, essentially making a cold swap. After the restart, the process will have all the changes you want to see, because all your new code will start again.

Hope this helps!

+7
source

All Articles