1.生产keystore文件:在C:\Program Files\Java\jdk1.7.0_17\bin目录下:
C:\Program Files\Java\jdk1.7.0_17\bin>
keytool -genkey -alias JFrench.keystore -keyalg RSA -validity 1000000 -keystore JFrench.keystore
2.在keystore文件目录与下签名:
jarsigner –keystore key.keystore –storepass keystore.password –signedjar signed.apkfile unsigned.apkfile key.keystore
C:\Program Files\Java\jdk1.7.0_17\bin>
jarsigner -verbose -keystore JFrench.keystore -signedjar signed.apk -digestalg SHA1 -sigalg MD5withRSA mitalk_debug.apk JFrench.keystore
liuyong
加上 –storepass keystore.password参数后,总是提示密钥库加载失败。
阅读(275) | 评论(0) | 转发(0) |