我正在嘗試簽署未簽名的APK。我跟着this link。無法簽署未簽名的APK
我的步驟:
$ cordova build --release android
(成功)$ keytool -genkey -v -keystore my-release-key.keystore -alias alias_name - keyalg RSA -keysize 2048 -validity 10000
(成功)$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name
(有問題)
的問題是:
jarsigner: unable to open jar file: HelloWorld-release-unsigned.apk
然後我跟着this link。
$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -my-release-key.keystore F:\mobile\moto\whatever_the_path_is_to_your_apk_file\HelloCordova-release-unsigned.apk alias_name
(有問題)
的問題是:
Illegal option: -my-release-key.keystore
誰能幫我。謝謝。
當我使用這個去掉'-' ='$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 my-release-key.keystore F:\ mobile \ moto \ whatever_path_is_to_your_apk_file \ HelloCordova-release-unsigned.apk alias_name'告訴我'唯一可以指定的別名' – syareen
然後我試了這個'jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore -storepass try -keypass try C:\ Users \ Users \ desktop \ try \ platform \ android \ build \ outputs \ apk \ android-release- unsigned.apk嘗試它'告訴我'jarsigner錯誤:java.lang.RuntimeException:密鑰庫加載:密鑰庫被調和,或密碼不正確' – syareen
我更新了我的答案添加命令以生成一個新密碼的新密碼文件。 – manzapanza