Hi all. I'm working in a composed based design sy...
# compose
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?
not kotlin but kotlin colored 2
This is kotlin, It has to do with compose previews and how they get deployed to the emulator. It's a compose specific issue
c
How do you deploy previews to the emulator?
Either way, it’s Jetpack Compose. So rather move this question to #C04TPPEQKEJ or ask in a Android specific forum. Those people might be a better fit to answer your question.
m
that's fair enough, but it's still a compose (albeit android specific) issue that's part of the compose feature set.
c
This „feature set“ though does not have anything to do with the JetBrains compose runtime. Your issue most probably is Android studio or the Android Gradle plugin.