Android app crashes when launched in debug mode

For me, it occurred when I have a breakpoint in a nested function. In my case, it was within Runnable.run() {}. Not sure if it happens in other nested functions. Example: public class TouchEvent { public boolean HandleEvent(MotionEvent Event) { new Runnable() { @Override public void run() { int i=5; i++; }}; } } If … Read more