I have a project setup with two build types: debugand release.
In my application modules I have three different directories: debug, releaseand main.
What I want to do is check the code in the directory release, but the only way I can do this is to create a signed apk and upload it to the emulator this way. This means that I cannot debug it correctly.
When I change my module build option appto release, I get the following error in the "Edit Configuration" popup.
Error: apk for the option you selected (app-release-unsigned.apk_ is not signed. Specify the signature configuration for this option (release).
What I was hoping to do was extend the build option releaseusing one of the debugReleasein the build.gradlemodule file app, which would then inherit the code in the directory release, but I would be able to run it from the IDE.
I may be looking at it wrong, and I would be glad to hear any other methods.
Can I do what I'm trying to do? If this is not the best solution for this?
source
share