安装apk的时候总是不能正常安装,提示如下:
Installation failed with message INSTALL_PARSE_FAILED_MANIFEST_MALFORMED.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
每次点击确定也不能正常安装还是报错。不知道是哪里改的不对了,最后重新整理了注册文件,apk正常安装了。
原因及解决方案:
(1)你的程序已经安装。删除重新安装即可。
(2)你的AndroidManifest.xml文件编写错误。建议仔细查看,然后再Build试一下,或者Clean再安装。
(3)包的首字母不能大写。仔细查看是否存在该错误,该问题很隐秘,代码编写时注意该问题。
(4)AndroidManifest.xml文件的包的应用输入完整的路径。
总结:
一般该问题的出现是由于包的路径出问题,或者更改包名时没有自动更改过来或自己手动更改过来,还有就是建立包名的时候忽视了命名规则。总之,包除了问题,在AndroidManifest.xml里面寻找问题。
转载:https://blog.csdn.net/u012721519/article/details/50993567