我正在將 Android 應用升級到 Target API 級別 30 (Android 11),因為它在2021 年 11 月之前是必需的。
如何使用當前的簽名密鑰*.keystore并正確構建它或遷移到新的簽名密鑰但 Play 商店也會接受它?
如果我使用 current*.keystore來簽署我的應用程式,則會出現錯誤Android Studio 4.2
Execution failed for task ':app:signReleaseBundle'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.FinalizeBundleTask$BundleToolRunnable
> Failed to generate v1 signature
and
The security strength of SHA-1 digest algorithm is not sufficient for this key size
如果我通過 keytool生成一個新密鑰,它可以用于構建,但在上傳aab.
Play商店的錯誤
Your Android App Bundle is signed with the wrong key. Ensure that your App
Bundle is signed with the correct signing key and try again. Your app bundle is expected to be signed with the certificate with fingerprint:
更多資訊
$ keytool -list -v -keystore ./{yourkeystore}.keystore -alias xxxxxx -storepass xxxxxx -keypass xxxxxx
表明 Subject Public Key Algorithm: 2048-bit DSA key (3)
uj5u.com熱心網友回復:
由客戶支持解決,他們允許使用新密鑰。
https://support.google.com/googleplay/android-developer/gethelp
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/358324.html
