http://androiddevelopertutorial.com/fixing-install_parse_failed_no_certificates-android-jdk7
试了下加-digestalg SHA1 -sigalg MD5withRSA
ant build这样:
<exec executable="${signer}" failonerror="true">
<arg value="-verbose"/>
<arg value="-keystore"/>
<arg value="${keystore}"/>
<arg value="-storepass"/>
<arg value="${store_pass}"/>
<arg value="-keypass"/>
<arg value="${key_pass}"/>
<arg value="-digestalg"/>
<arg value="SHA1"/>
<arg value="-sigalg"/>
<arg value="MD5withRSA"/>
<arg value="-signedjar"/>
<arg value="${bin}\${file_name}_unrezip.apk"/>
<arg value="${bin}\${file_name}_unsigned.apk"/>
<arg value="${key_name}"/>
</exec>
问题可以解决
试了下加-digestalg SHA1 -sigalg MD5withRSA
ant build这样:
<exec executable="${signer}" failonerror="true">
<arg value="-verbose"/>
<arg value="-keystore"/>
<arg value="${keystore}"/>
<arg value="-storepass"/>
<arg value="${store_pass}"/>
<arg value="-keypass"/>
<arg value="${key_pass}"/>
<arg value="-digestalg"/>
<arg value="SHA1"/>
<arg value="-sigalg"/>
<arg value="MD5withRSA"/>
<arg value="-signedjar"/>
<arg value="${bin}\${file_name}_unrezip.apk"/>
<arg value="${bin}\${file_name}_unsigned.apk"/>
<arg value="${key_name}"/>
</exec>
问题可以解决
本文详细介绍了如何通过调整ANT构建工具的配置参数来解决Android开发中遇到的安装解析失败和证书问题,特别是针对使用JDK7环境的开发者。通过设置digestalg为SHA1和sigalg为MD5withRSA,成功解决了apk签名验证的问题。
541

被折叠的 条评论
为什么被折叠?



