Android Package Name - Using Dashes

做~自己de王妃 提交于 2020-08-27 08:02:09

问题


I was wondering if you could use dashes in a package name for an Android application?


回答1:


No, you cannot use a dash in your package name.

This is a great question to test for yourself. If you change the package name in your Manifest or class (I assume the wizard too) it will clearly create compile time errors.


The link that @vasart posted describes how to use an underscore in place of a dash, if necessary.



来源:https://stackoverflow.com/questions/13753637/android-package-name-using-dashes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!