包名中的数字 Android Studios
Numbers in package name Android Studios
我正在尝试创建一个应用程序,即“1abcxyx
”。当我在 Android 工作室创建项目时。
例如
App name:1abcxyz
Company domain:1abcxyz.com
Package name: com.1abcxyz.1abcxyz
它创建了项目位置,但 "next button" 是灰色的。免责声明出现,说我不能在包名称中包含#。
我还没有找到解决这个问题的方法。
来自 documentation 关于 Java 中的包命名:
In some cases, the internet domain name may not be a valid package
name. This can occur if the domain name contains a hyphen or other
special character, if the package name begins with a digit or other
character that is illegal to use as the beginning of a Java name
这意味着您不能使用数字作为包的第一个字符(或 class、接口或变量名称)。
澄清一下,您可以将您的应用程序命名为 1abcxyz,它只是不能以数字开头的包名称(例如,您可以使用 oneabcxyz
而不是 1abcxyz
)。使用与贵公司网站不同的包名称不应影响您的应用程序与贵公司服务器之间的通信。
我正在尝试创建一个应用程序,即“1abcxyx
”。当我在 Android 工作室创建项目时。
例如
App name:1abcxyz
Company domain:1abcxyz.com
Package name: com.1abcxyz.1abcxyz
它创建了项目位置,但 "next button" 是灰色的。免责声明出现,说我不能在包名称中包含#。
我还没有找到解决这个问题的方法。
来自 documentation 关于 Java 中的包命名:
In some cases, the internet domain name may not be a valid package name. This can occur if the domain name contains a hyphen or other special character, if the package name begins with a digit or other character that is illegal to use as the beginning of a Java name
这意味着您不能使用数字作为包的第一个字符(或 class、接口或变量名称)。
澄清一下,您可以将您的应用程序命名为 1abcxyz,它只是不能以数字开头的包名称(例如,您可以使用 oneabcxyz
而不是 1abcxyz
)。使用与贵公司网站不同的包名称不应影响您的应用程序与贵公司服务器之间的通信。