Disable the Instant Run option in Android Studio. Instructions are in the Android Studio Instant Run documentation.
Instant Run tries to do hot swapping of your code; this causes the application class to be moved.
To disable Instant Run Go to File –> Settings–> Build,Execution,Deployment –>Instant Run —> uncheck “Enable instant run”