首页 > 解决方案 > Delphi 无效的 jarsign 选项警告

问题描述

Delphi 10.2.3 为 Android 应用商店构建

我收到这个警告:

[PAClient Warning] Warning: W0020 Invalid jarsign option: C:\Program Files\Java\jdk1.8.0_60\bin\JarSigner.exe,.\Android\Release\COWMobileBuild30\bin\COWMobileBuild30-unsigned.apk,cow android key alias,C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidSDK-2433_19.0.29899.2631\tools\Mike's Google Keystore.keystore,MD5withRSA,SHA1,851C47C05F940783CF7DE53CD171E33F81850535A05F97C997AA0FF88E783C8ADB56A385E3111C2FC1E2577DFAC4C363BA95367E043722D3163A459DE5E4229DC938F341D558FA9BBFF8AF1172218595,851C47C0645855D8A342711DD129E36881D0051BA043979397B40FAB8E363C94DB04A3D7E3401C39C1CC5752FACFC338BAF83613042722C3164B45C2E5BA22DBC90AF35DEE8AA8C8D3DE3B1E72218595,1, ignored

然后安装失败:

[INSTALL_PARSE_FAILED_NO_CERTIFICATES]

项目|选项...配置,单击检查密码按钮说:

“您的密钥库和证书密码有效。”

我错过了什么?

标签: androiddelphi

解决方案


The warning about the invalid jarsign option apparently stemmed from naming my key file:

Mike's Google Keystore.keystore

The apostrophe (or maybe the spaces) in the file name confused jarsign.

I changed the file name to:

MikesGoogleKeystore.keystore

That got it to build and install successfully.


推荐阅读