Android Studio opens the wrong file when debugging a variant

173 Views Asked by At

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?

0

There are 0 best solutions below