android studio: release apk is not signed

前端 未结 7 2051
误落风尘
误落风尘 2021-02-04 02:07

* I have rephrased the post since originally posted *

When I try to run a just-built release apk, I get an error \"the apk for your currently selected v

7条回答
  •  無奈伤痛
    2021-02-04 02:35

    I had the same issue turned out I misconfigured the signingConfigs property.

    Specifically, I thought I didn't have a password for the key where I actually had set it. After adding the missing information, it worked.

    signingConfigs {
            config {
                keyAlias 'key0'
                storeFile file('C:/Users/xxx/xxx/keystore/xxx.jks')
                storePassword '123'
                keyPassword '123' // this was missing
            }
        }
    

提交回复
热议问题