Android Studio 无法再签署生产应用

问题描述

周末发生了一些事情,因为周一无法再对我的应用程序进行签名生产构建。我唯一安装的是 Ableton Live 11 但我不知道这有什么关系。我使用“生成签名包/APK”来确保 signingConfigs 中的 build.gradle 不是问题。

当从 Android Studio 运行时,它显示:

enter image description here

APKPure 上上传 APK 时显示该 APK 无效:

enter image description here

到目前为止我尝试过的步骤:

  • 尝试了不同的项目,所有项目都无法签约,所以不是具体的项目。
  • 从此 SO thread 卸载了 Android Studio。
  • 我在 google-services.json 中找到了 apkpure 上提到的签名,我已将其删除,但结果相同。

解决方法

  • 您可能更改了应用的 KeyStore。

  • 确保在 build.gradle 中,debug{} 中的 release{}buildTypes{} 的签名配置属性具有相同的值并且 debug{} 具有属性 debuggable true

来源:https://stackoverflow.com/a/27873028

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...