简体   繁体   English

无法安装应用更新

[英]App Update Won't Install

com.blastmnt.alarmclock com.blastmnt.alarmclock

Old APK 旧版APK

  • versionCode="4" versionCode =“ 4”
  • versionName="0.2.3.0" versionName =“ 0.2.3.0”

New APK 新APK

  • versionCode="5" versionCode =“ 5”
  • versionName="0.2.3.1" versionName =“ 0.2.3.1”

I have created a keystore in the terminal using keytool: 我已经使用keytool在终端中创建了一个密钥库:

keytool -genkey -v -keystore alarm.keystore -alias alarmalias -keyalg RSA -keysize 2048 -validity 10000

And exported a signed project through the ADT Bundle, pointed it to the keystore file. 并通过ADT捆绑包导出已签名的项目,将其指向密钥库文件。

Users/Me/Documents/Android/workspace/alarmclock [project directory] 用户/我/文档/ Android /工作区/闹钟[项目目录]

Users/Me/Documents/Android/keystore/alarm.keystore 用户/我/文档/Android/keystore/alarm.keystore


After that not working after multiple attempts, saying that the signature wasn't the same I tried jarsigner, and exported an unsigned project instead. 之后,多次尝试后仍无法正常工作,并说签名与我尝试过的jarsigner不同,而是导出了一个未签名的项目。

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore alarmclock.keystore alarmclock.apk clockalias

Then verified them with: 然后用以下方法验证它们:

jarsigner -verify -verbose -certs alarmclock.apk

Uploaded the newer one to a URL on my server, deleted it from my computer, then repeated the process, with changing the version code and name down, and uploaded it to my devices, then went to try to download the newer files. 将较新的文件上传到服务器上的URL,从计算机中将其删除,然后重复该过程,更改版本代码和名称,然后将其上传到我的设备,然后尝试下载较新的文件。

The Moto X just says "App not installed", and in the LogCat it says: Moto X只是说“未安装应用程序”,在LogCat中说:

Installation Error Code -25 安装错误代码-25

While the RAZR M says that the signatures aren't the same. 虽然RAZR M说签名不一样。

Tried it again, making sure that I didn't magically swap version files, and then repeated the whole process to make sure I did the key right, and compared the jarsigner verify outputs to make sure everything was in line, same problem. 再次尝试,确保我没有神奇地交换版本文件,然后重复整个过程以确保我正确执行了密钥,然后比较jarsigner验证输出以确保所有内容都符合要求,并且是相同的问题。

Please help, I am really at a loss at this point. 请帮助,在这一点上我真的很茫然。 I am probably just doing something stupid wrong, but for the life of me I don't see it. 我可能只是在做一些愚蠢的错误,但是对于我的一生,我没有看到它。 Thank you so much for any help at all! 非常感谢您的帮助!

As a wise man once said, if you can't find a solution, it is because you're asking the wrong question. 正如一个明智的人曾经说过的,如果找不到解决方案,那是因为您在问错问题。

The server wasn't dumping the old file, when a new one was uploaded to override it. 当上传新文件以覆盖旧文件时,服务器未转储旧文件。 So both phones were correct, wrong signature and version error (-25). 因此,这两款手机都是正确的,签名错误,版本错误(-25)。

Figured that out by emailing myself the new file to update, realized it worked, then broke everything down from there when I realized the APK wasn't the problem. 通过发电子邮件给自己发送要更新的新文件来弄清楚,意识到它可以正常工作,然后当我意识到APK不是问题时,将所有文件分解了。

Thank you everyone who has viewed the question to try to help. 谢谢所有查看了该问题以寻求帮助的人。 I am absolutely grateful for your time. 我非常感谢您的宝贵时间。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM