When I hit the Run or Debug button, everything appears to be normal. The app starts, breakpoints break... However, sometimes the code does not reflect changes. The only way to remedy this is restarting AS. It would be fine if I just needed to restart AS a few times per day. Unfortunately, this happens as frequently as once every half an hour or so. The target device is an Android 5.1.
How do I know the code is not updated? I just add a statement as following to see if the Android Monitor shows it:
Log.d("debug", "********************** THIS IS A NEW LINE OF CODE *********************************");
Is there a better way than restarting AS to remedy this? Or even better, any way to prevent this?