gpt4 book ai didi

Android Studio 不断要求签名配置,尽管我已经有发布构建 APK

转载 作者:行者123 更新时间:2023-12-02 05:56:33 25 4
gpt4 key购买 nike

我的 build.gradle 中有:

android {
signingConfigs {
debug {
storeFile file("debug.keystore")
}

release {
try {
storeFile file("mykey.keystore")
storePassword "store_password"
keyAlias "myapp"
keyPassword "key_passowrd"
)
}
catch (ignored) {
throw new InvalidUserDataException("Something wrong")
}
}
}

buildTypes {
debug {
debuggable true
minifyEnabled false
versionNameSuffix '-DEBUG'
}
release {
debuggable false
minifyEnabled true
versionNameSuffix '-RELEASE'
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

}
}
}

在构建变体中,我选择“发布”。然后,我在连接的设备上运行我的应用程序,但是,Android Studio 不断弹出对话框:

enter image description here

但我确实有签名配置...

在构建输出中,我也没有看到 app-release.apk :

enter image description here

为什么我会收到错误消息?我的Android Studio版本是3.0.1

最佳答案

您忘记提供您的signingConfigs的链接:

buildTypes {
release {
signingConfig signingConfigs.release
...
}
debug {
signingConfig signingConfigs.debug
...
}
}

关于Android Studio 不断要求签名配置,尽管我已经有发布构建 APK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48708609/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com