我正在运行此命令:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore android-release-unsigned.apk alias_name
但我收到此错误
我该如何解决 ?
问题可能是您的 unsigned APK and keystore 不在同一文件夹中 .
您需要知道来自previos步骤的未签名APK和密钥库的路径 . 我建议使用 moving them into the same directory ,这样命令更容易输入 .
而不是 android-release-unsigned.apk 你应该使用你的应用程序的名称 NameOfMyApp.apk
android-release-unsigned.apk
NameOfMyApp.apk
整个命令应该如下所示:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore NameOfMyApp.keystore NameOfMyApp.apk NameOfMyApp
这只有在你有 NameOfMyApp.keystore 时才有效
NameOfMyApp.keystore
更多相关信息,请致电Chapter 6: Publishing your app
解决方案是卸载并重新安装JDK .
我跟着这个:
https://www3.ntu.edu.sg/home/ehchua/programming/howto/JDK_Howto.html
2 回答
问题可能是您的 unsigned APK and keystore 不在同一文件夹中 .
您需要知道来自previos步骤的未签名APK和密钥库的路径 . 我建议使用 moving them into the same directory ,这样命令更容易输入 .
而不是
android-release-unsigned.apk
你应该使用你的应用程序的名称NameOfMyApp.apk
整个命令应该如下所示:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore NameOfMyApp.keystore NameOfMyApp.apk NameOfMyApp
这只有在你有
NameOfMyApp.keystore
时才有效更多相关信息,请致电Chapter 6: Publishing your app
解决方案是卸载并重新安装JDK .
我跟着这个:
https://www3.ntu.edu.sg/home/ehchua/programming/howto/JDK_Howto.html