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.
I have tried invalidating caches, restarting, and rebuilding, but I'm still encountering the same issue. Any suggestions would be greatly appreciated. Thanks!
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.