简体   繁体   English

仅在一台设备上发生错误[INSTALL_PARSE_FAILED_NO_CERTIFICATES]?

[英]Error [INSTALL_PARSE_FAILED_NO_CERTIFICATES] on one device only?

I'm working on an Android app that has was originally released two years ago and has been successfully updated maybe 8-12 times. 我正在开发最初是两年前发布的Android应用,现在已经成功更新了8-12次。 While doing internal testing, we found that one of our devices will display this error when we try to install a new APK onto it: 在进行内部测试时,我们发现当我们尝试在其中安装新APK时,其中一台设备会显示此错误:

Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

This error is pretty well documented around the web, and the commonly cited source of the problem is having JDK7 installed on your system, but I am still using JDK6. 该错误在网络上已被很好地记录下来,并且该问题的普遍引用来源是在系统上安装了JDK7,但我仍在使用JDK6。

But what is really odd to me is that the APK reports being signed correctly using the "jarsigner" tool, and the APK also installs correctly on three other devices I've tested on. 但是真正令我感到奇怪的是,APK报告使用“ jarsigner”工具正确签名,并且APK也可以正确安装在我测试过的其他三个设备上。 Only our Droid Pro w/ Android 2.2 seems to be reporting this installation error. 仅我们的Droid Pro(带有Android 2.2)似乎正在报告此安装错误。

Has anyone else ever run into this issue only occurring on a single device? 有没有其他人遇到过仅在单个设备上发生此问题的情况? It is a bit troubling, but I'm not sure whether it is a problem with the app or a problem with the device. 这有点麻烦,但是我不确定这是应用程序问题还是设备问题。

我遇到了设备2.1和2.2的类似问题,使用JDK6并没有帮助,但是使用jarsigner手动签名,提供了sigalg和digestalg-做到了(即使使用JDK7):

jarsigner -sigalg SHA1withDSA -digestalg SHA1 -keystore keystore.keystore file.apk alias

It seems to be the problem with the device. 这似乎是设备的问题。 Is the app built for 2.2, froyo, api level 9 (your device OS version). 是为2.2,Froyo,API级别9(您的设备操作系统版本)构建的应用程序。 Check the manifest file of your app once.. 一次检查您应用的清单文件。

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

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