Force a Full Build on Each Run:
You can configure Android Studio to always perform a clean build before running: Go to Run > Edit Configurations. Select your app configuration and scroll down to Before Launch. Click on Add (+), then select Gradle-aware Make. This ensures that a Gradle build task runs before launching the app, forcing it to rebuild and apply any XML changes. It works 100%