Search code examples
androidandroid-studio

Changes were not applied. Modifications to AndroidManifest.xml require an app restart


I'm facing an issue with Android Studio. Whenever I try to 'Restart Activity' or 'apply code changes,' I receive the following error message: Error running 'app': Modifications to AndroidManifest.xml require an app restart.

This forces me to restart the app every time, even for minor changes. I have attached a screenshot for reference.

enter image description here

I have tried invalidating caches, restarting, and rebuilding, but I'm still encountering the same issue. Any suggestions would be greatly appreciated. Thanks!


Solution

  • Clean Project:

    Go to Build > Clean Project. After cleaning, go to Build > Rebuild Project.

    Invalidate Caches and Restart:

    Go to File > Invalidate Caches / Restart. Choose Invalidate and Restart.