In my case, I had custom build variants and multiple modules, and the production build varian was the selected one, just VERIFY THE BUILD VARIANT, in a normal project, the one that should be selected is the debug.