Hi all. I'm working in a composed based design sy...
# compose-android
m
Hi all. I'm working in a composed based design system library. It gets published as an aar, and it has a reference app that we maintain so we can see a catalog of the components we're providing in the library. As such, it only really has a debug variant, and thus does not need any code signing. We will also typically take our @Preview functions and deploy them to the emulator. When we do that, we select the reference application as part of the run configuration. Sometime recently i've started getting this error when trying to do this in AS (narwhal 3 feature drop):
Copy code
Error: The apk for your currently selected variant cannot be signed. Please specify a signing configuration for this variant (debug).
I've even tried adding a debug signing key by adding the keystore and doign this in the app module:
Copy code
signingConfigs {
        getByName("debug") {
            storeFile = rootProject.file("keystore/debug.keystore")
            storePassword = "xxxxx"
            keyAlias = "xxxxx"
            keyPassword = "xxxxx"
        }
    }

    buildTypes {
        getByName("debug") {
            signingConfig = signingConfigs.getByName("debug")
        }
    }
But it still shows the same error. Does anyone have any idea how to resolve this and/or what changed recently to cause this?