【问题标题】:How to fix Linux Codename One build failed error如何修复 Linux Codename One build failed 错误
【发布时间】:2019-09-04 18:45:28
【问题描述】:

在 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

【问题讨论】:

    标签: linux build codenameone


    【解决方案1】:

    您的证书密钥似乎无效,您需要确保您的签名密钥已正确生成且未损坏。我建议使用 keytool 进行验证。

    【讨论】:

    • 我用 keytool 测试过,别名和密码都可以,如上面的编辑所示。 会不会是 Linux 上的权限问题导致 IDE 中的 CN1 插件无法从主目录正确读取钥匙串?
    • 有可能但不太可能。服务员有东西。我建议查看 codenameone_settings.properties 并确保它指向正确的证书文件。
    猜你喜欢
    • 1970-01-01
    • 2023-03-14
    • 1970-01-01
    • 2021-12-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-11
    相关资源
    最近更新 更多