Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: The apk for your currently selected variant (Unknown output) is not signed. Please specify a signing configuration for this variant (debug)

After upgrading to Android Studio Arctic Fox (2020.3.1) Canary 9. I cannot run my tests. It pops up the Edit Configurations window to show Error: The app for your currently selected variant (Unknown output) is not signed. Please specify a signing configuration for this variant (debug). message. I can't seem to solve this issue just by creating .jks and using the release signing configuration for debug variant as well like most of the posts suggested. I'm kinda stuck between whether I downgrade or try to solve it somehow. Is there anyone who faced this issue before? Any suggestions and opinions are welcomed.

enter image description here

Problem still occurs in Android Studio Arctic Fox (2020.3.1) Canary 10 version as well.

like image 249
Yekta Sarıoğlu Avatar asked Mar 11 '21 09:03

Yekta Sarıoğlu


2 Answers

This occurred to me too, this might happen because the default signing configuration is modified after upgrading to Gradle 7.0.0. You can fix this without downgrading the Gradle. To do this,

go to File menu > Project Structure. Step Reference Image 1

then go to Modules section Step Reference Image 2

then head to Default Config tab Step Reference Image 3

Scroll down to Signing Config then click dropdown Step Reference Image 4

select $signingConfigs.debug from the drop-down list Step Reference Image 5

Click APPLY then OK then Run your app again.

That SOLVED the issue for me. Hope it works for you too.

like image 168
Shivansh Goel Avatar answered Sep 24 '22 17:09

Shivansh Goel


I was getting the same issue and came across your posts. Fortunately, I was able to fix it. Follow the step below: Build Variants (lower-left corner) > Active Build Variant > change it back to Debug

like image 21
padlanau Avatar answered Sep 22 '22 17:09

padlanau