Also, if I recall correctly, you cannot have the same class in your main source set and debug source set. Instead, you have to have a debug and then production source set for your build types. Without additional information about how you have your project set up, I can only guess š