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

查看:32
本文介绍了什么是 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 都需要签名,如果它将安装在手机上,即使您不是通过市场安装.开发工具通过使用开发证书签名来解决此问题,但 .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天全站免登陆