An Android app has two flavors A and B. Both have foo.java
src
A
java
foo.java
src
B
java
foo.java
In window Build Variants, I choose BDebug because I want to debug flavor B. I have breakpoints in foo.java of B. When I run the app, it breaks, but in a strange place of file foo.java of A.
How can I debug the java files of flavor B?