什么是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.