什么是INSTALL_PARSE_FAILED_NO_CERTIFICATES错误? [英] What is INSTALL_PARSE_FAILED_NO_CERTIFICATES error?

查看:103
本文介绍了什么是INSTALL_PARSE_FAILED_NO_CERTIFICATES错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过编辑androidmanifest.xml文件来更改我的默认/主/启动(无论您叫什么)活动.我所做的就是更改android:name属性.但是,这完全破坏了整个应用程序.当我尝试安装时,它会失败并读取.

I was trying to change my default/main/startup (whatever you call it) activity by editing the androidmanifest.xml file. All i did was change the android:name property. however, this completely broke the entire app. when I try to install it fails and reads.

安装错误:INSTALL_PARSE_FAILED_NO_CERTIFICATES

Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES

当我尝试将其恢复为以前的状态时,它仍然给我同样的错误...我做了什么?

When I tried to change it back to its previous state, it was still giving me the same error... What have I done?

推荐答案

您直接在.apk文件中编辑AndroidManifest.xml吗?如果是这样,那将行不通.

Did you edit the AndroidManifest.xml directly in the .apk file? If so, that won't work.

要安装的每个Android .apk都需要签名在手机上,即使您不是通过Market进行安装.开发工具通过使用开发证书进行签名来解决此问题,但是.apk仍然是签名的.

Every Android .apk needs to be signed if it is going to be installed on a phone, even if you're not installing through the Market. The development tools work round this by signing with a development certificate but the .apk is still signed.

对此的一种用法是,设备可以判断.apk是否是已安装应用程序的有效升级,因为如果是,则证书将相同.

One use of this is so a device can tell if an .apk is a valid upgrade for an installed application, since if it is the Certificates will be the same.

因此,如果您对应用程序进行任何更改,则都需要重建.apk以便正确签名.

So if you make any changes to your app at all you'll need to rebuild the .apk so it gets signed properly.

这篇关于什么是INSTALL_PARSE_FAILED_NO_CERTIFICATES错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆