7

For one of my projects, Android Studio sometimes doesn't rebuild when I click run. I have to manually click rebuild project, wait for it to rebuild, and then click run to deploy the app to the device. If I don't manually click rebuild project first, the previous version of the app will be deployed to the device.

This takes a lot of time and is very annoying while developing the app..

Is there a setting that I could possibly have changed accidentally?

It only happens for one certain project. I tried looking into the settings but I could not find anything that may cause this.

EDIT: it only happens when the only change since the last build is in XML files.

Mark Buikema
  • 2,483
  • 30
  • 53

1 Answers1

-2

Try to Restart Android Studio by clearing all caches

Click on File > Invalidate caches/Restart

enter image description here

Hope it Helps.

Kapil Rajput
  • 11,429
  • 9
  • 50
  • 65