错误地使用了混合大小写包名对已部署的应用程序,我可以将其更改为小写? [英] Erroneously used mixed-case package-name on an already deployed App, can I change it to lowercase?

查看:1363
本文介绍了错误地使用了混合大小写包名对已部署的应用程序,我可以将其更改为小写?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对谷歌的应用程序播放的java包名称中的混合大小写的..我一直在寻找删除Android的皮棉警告(见<一的最后一部分href=\"http://stackoverflow.com/questions/10868431/adroid-lint-complaining-about-activity-not-registered-in-androidmanifest-but-it\">this问题)和的让我注意到了Java命名约定说,你应该使用Java包名称仅小写字母,也许这是什么原因造成的警告。我的应用程序工作正常,但我想包名称更改为小写,以符合Java命名约定..如果我更改包的名称只有小写,我将打破谷歌的行为正确播放?即,如果我发布应用程序的新版本使用新的包名的Andr​​oid不会承认它作为设备上安装相同的应用程序,它会显示为一个完全不同的应用程序?你建议我干脆忽略这个错误,记得遵守命名约定在我的下一个项目或我可以用混合大小写包名的问题(更糟糕的不是简单的lint警告)?


解决方案

  

一旦你在其清单包名称发布应用程序,
  这是应用程序的唯一标识永远多。交换
  以不同的名称导致一个全新的应用,一个
  不能安装作为更新到现有的应用程序


它不可能改变它。请仔细阅读<一href=\"http://android-developers.blogspot.in/2011/06/things-that-cannot-change.html\">http://android-developers.blogspot.in/2011/06/things-that-cannot-change.html

I have an app on Google Play whose java package name has the last part in mixed-case.. I was looking to remove an Android Lint warning (see this question) and Jens made me notice that Java naming conventions say that you should use only lowercase letters for java package names, and maybe this is what causes the warning.. My app works correctly, but I'd like to change the package name to lowercase, to comply with java naming conventions.. If I change the name of the package to only-lowercase, will I break the correct behavior of Google Play? I.e., if I release a new version of the app with the new package name Android will not recognize it as the same app installed on devices and it will appear as a completely different app? Do you suggest me simply to ignore this mistake and remember to comply with naming conventions in my next project or could I have problems (worse than simple Lint warnings) with the mixed-case package name?

解决方案

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.

Its not possible to change it . Please read http://android-developers.blogspot.in/2011/06/things-that-cannot-change.html

这篇关于错误地使用了混合大小写包名对已部署的应用程序,我可以将其更改为小写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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