在LinuxUbuntu18.10和IntellijV2019.1和Netbeansv11上提交Android版本失败。

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':packageRelease'.

Caused by: com.android.ide.common.signing.KeytoolException:
Failed to read key from store "/tmp

Caused by: java.io.IOException: Invalid keystore format

Deprecated Gradle features were used in this build,
making it incompatible with Gradle 5.0.

使用keytool验证证书,如下所示。
$ keytool -v -list -keystore Keychain.ks
Enter keystore password:
Keystore type: PKCS12
Keystore provider: SUN
Your keystore contains 1 entry
Alias name: mobitribe
Creation date: 14 Apr 2019
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=MobiTribe, OU=ITDepartment, O=MobiTribe, L=Nairobi, ST=Kenya, C=KE
Issuer: CN=MobiTribe, OU=ITDepartment, O=MobiTribe, L=Nairobi, ST=Kenya,C=KE
Serial number: 5c0aaf6f
Valid from: Sun Apr 14 16:38:51 EAT 2019 until: Sat May 08 16:38:51 EAT 2060
Extensions:
#1: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [KeyIdentifier [0000: D2 77 22 2D 0A 63 22 52 DA C4 8B 4C CD B7 7E 1C .w"-.c"R...L....0010: B6 B3 14 DF

最佳答案

您的证书密钥似乎无效,您需要确保签名密钥生成正确且未损坏。我建议用钥匙工具来验证。

关于linux - 如何修复Linux Codename One build failed错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/55678102/

10-10 17:37