在IntelliJ v2019.1和Netbeans v11上使用JDK 11的Linux Ubuntu 18.10中提交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
答案 0 :(得分:0)
看来您的证书密钥无效,您需要确保您的签名密钥正确生成并且没有损坏。我建议使用keytool进行验证。