'How do i fix my Android Studio "Variant cannot be signed" error?

So I just fetched a git repo using the cookiecutter extension for python. Downloading was no problem, but when I try to run the app, it shows me an error:

Error: The apk for your currently selected variant cannot be signed. Please specify a signing configuration for this variant (development-debug).

ERROR as an image

Shows a red X symbol

I found no resolution to the problem online, so please help me!



Solution 1:[1]

this is future you!

Fixing this problem is easy. Go to File -> Project Structure -> Build Variants -> app -> debug -> Signing Config.

Then u have to change it to "$signingConfigs.debug"

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Itapox