Just wrote this simple app for testing: one button that displays date and hour, and another button that selects a random color and shows it.
It works fine on Emulator but th
if Instant Run is activated this causes some classes to be moved.
To disable Instant Run Go to
File -> Settings -> Build,Execution,Deployment ->Instant Run -> uncheck "Enable instant run"