简体   繁体   English

jarsigner:无法打开 jar 文件:app-release-unsigned.apk

[英]jarsigner: unable to open jar file: app-release-unsigned.apk

I am currently working on cordova project and I tried to generate key with the set of lines我目前正在研究科尔多瓦项目,我试图用这组行生成密钥

keytool -genkey -v -keystore <myappname.keystore> -alias <myappname> -keyalg RSA -keysize 2048 -validity 10000

I also generated a keystore after that I used the below line在使用以下行之后,我还生成了一个密钥库

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore <myappname.keystore> app-release-unsigned.apk <myappname>

but I get this issue但我得到了这个问题

jarsigner: unable to open jar file: app-release-unsigned.apk jarsigner:无法打开 jar 文件:app-release-unsigned.apk

Can anyone help me with the solution.任何人都可以帮助我解决问题。 Thanks in advance.提前致谢。

In the application root:在应用程序根中:

cd platforms/android
./gradlew assembleRelease
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore <myappname.keystore> app/build/outputs/apk/release/app-release-unsigned.apk <myappname>

I've suppossed you are really using Cordova not Ionic.我假设你真的在使用 Cordova 而不是 Ionic。

hey I know this kind of late to answer, but also came to this issue and i kept doing was copy paste the jarsigner code instead of giving the path to the APK below is the code嘿,我知道这种回答晚了,但也遇到了这个问题,我一直在做的是复制粘贴jarsigner代码,而不是给出下面的 APK 的路径是代码

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -my-release-key.keystore <whatever_the_path_is_to_your_apk_file\app-release-unsigned.apk> alias_name

hope this help others who comes to this stack....希望这能帮助到这个堆栈的其他人......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 app-release-unsigned.apk 未签名 - app-release-unsigned.apk is not signed Cordova app-release-unsigned.apk 不工作 - Cordova app-release-unsigned.apk not working 不能通过g-mail在Android手机上打开文件(来自Android Studio的app-release-unsigned.apk)的原因是什么? - What could be the reason a file (app-release-unsigned.apk from Android Studio) does not open on an android phone from g-mail? jarsigner无法打开jar文件:NooYawk.apk。(NooYawk是应用程序名称) - jarsigner is unable to open jar file: NooYawk.apk .(NooYawk is App name) Android Studio 3.5.2 - 错误:您当前选择的变体 (app-release-unsigned.apk) 的 apk 未签名 - Android Studio 3.5.2 - Error: The apk for your currently selected variant (app-release-unsigned.apk) is not signed 无法使用 jarsigner 签署 apk 文件 - Unable to sign apk file using jarsigner 无法打开 &#39;android-release-unsigned.apk&#39; 作为 zip 存档(zipalign 错误) - Unable to open 'android-release-unsigned.apk' as zip archive (zipalign error) android release apk apksigner无法验证jarsigner - android release apk apksigner not able to verify jarsigner 未签名的版本APK未安装 - Unsigned Release APK not installing 在 Android 应用程序中打开 PDF 文件仅适用于 Android 上的未签名 APK - Open PDF file inside Android app only works with unsigned APK on Android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM