flutter - 在更新我的应用程序时,您的 Android App Bundle 使用错误的密钥签名错误
问题描述
我只是不太明白为什么会发生这种情况。我按照https://flutter.dev/docs/deployment/android中的所有步骤上传了我的第一个版本。其中有问题。所以我创建了另一个(一种以前的备份项目)flutter项目并将其修改为现有的。我更改了最初是别的东西的com.flutterappstareawayvrsn1。
我放了钥匙,它仍然显示错误:
您的 Android App Bundle 使用错误的密钥进行签名。确保您的 App Bundle 使用正确的签名密钥进行签名,然后重试::********************
你如何解决这个问题?
解决方案
我发现我做错了什么。按照https://flutter.dev/docs/deployment/android中的说明
原始代码是:
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now,
// so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
修改后的代码是:
使用签名配置信息:
content_copy
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ?
file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
But I didnt modify buildtypes
{
..
.}
I took it for granted and kept it in debug rather than release
推荐阅读
- python - 理解参考:为什么这个 Numpy 分配不起作用?
- c# - 脚本连接到其他脚本
- python - 如何在 Python 中计算一个句子中重复次数最多的字符?
- javascript - 如何将数据从 React.js 应用程序发布到 AWS Lambda?
- python - 对一行的几个类别使用 One-Hot 编码
- debugging - Uno 平台:Wasm 的 Debug.Writeline 不输出任何内容
- node.js - 通过其中一个字符串获取整个数组。数组在另一个数组中。MongoDB/Javascript
- java - 使用 Gradle 在不同命令下编译和构建测试
- matlab - 如何在图像表面而不是二维矩阵上的线上应用匹配滤波器:MATLAB
- python - Python从响应中读取Cookie?