编程语言
首页 > 编程语言> > android – 在已部署的应用程序上错误地使用了混合大小写的包名称,我可以将其更改为小写吗?

android – 在已部署的应用程序上错误地使用了混合大小写的包名称,我可以将其更改为小写吗?

作者:互联网

我在Google Play上有一个应用程序,其java包名称是混合大小写的最后一部分..我想要删除Android Lint警告(请参阅this question)并且Jens让我注意到Java命名约定说你应该只使用小写java包名称的字母,也许这就是导致警告的原因..我的应用程序正常工作,但我想将包名更改为小写,以符合java命名约定..如果我更改包的名称只有小写,我会破坏Google Play的正确行为吗?即,如果我使用新的软件包名称发布新版本的应用程序,Android将无法将其识别为设备上安装的相同应用程序,它将显示为完全不同的应用程序?您是否建议我简单地忽略这个错误并记住在我的下一个项目中遵守命名约定,或者我可能遇到混合大小写包名称的问题(比简单的Lint警告更糟)?

解决方法:

Once you publish your application under its manifest package name,
this is the unique identity of the application forever more. Switching
to a different name results in an entirely new application, one that
can’t be installed as an update to the existing application.

它不可能改变它.请阅读http://android-developers.blogspot.in/2011/06/things-that-cannot-change.html

标签:android,package,naming-conventions,google-play,android-lint
来源: https://codeday.me/bug/20190620/1249461.html