我只是不太明白为什么这种情况发生在我身上。我遵循了所有步骤https://flutter.dev/docs/deployment/android https://flutter.dev/docs/deployment/android上传我的第一个版本。其中有问题。所以我创建了另一个(以前的备份项目)flutter 项目并将其修改为现有的项目。我更改了 com.flutterappstareawayvrsn1 ,它最初是其他东西。
我已经把钥匙放了,但它仍然显示错误:
您的 Android App Bundle 使用错误的密钥进行签名。确保您的应用程序包使用正确的签名密钥进行签名,然后重试::********************
你如何解决这个问题?
我发现我做错了什么。按照中的说明https://flutter.dev/docs/deployment/android 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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)