颤振构建失败 DER 长度的短读

时间:2021-06-09 20:51:05

标签: android flutter dart

我不知道今天我尝试构建更新,但此错误发生在签名密钥等方面没有任何变化,请帮助解决此问题

C:\Users\Admin\Desktop\Android\dance>flutter build appbundle --no-sound-null-safety

Building without sound null safety
For more information see https://dart.dev/null-safety/unsound-null-safety


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:signReleaseBundle'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Failed to read key Godatu from store "C:\Users\Admin\Desktop\Android\dance\android\keystore\godatu_release.jks": Short read of DER length

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 52s
Running Gradle task 'bundleRelease'...
Running Gradle task 'bundleRelease'... Done                        54.5s
Gradle task bundleRelease failed with exit code 1

C:\Users\Admin\Desktop\Android\dance>

1 个答案:

答案 0 :(得分:0)

很可能您的证书文件不是预期的格式。

下面是例子

<块引用>

如果证书以Base64编码提供,则必须有界 开头是 -----BEGIN CERTIFICATE-----,并且必须有界 最后由 -----END CERTIFICATE-----