从Eclipse的Android项目的com.example更改默认包 [英] Change default package from com.example for Eclipse Android projects
问题描述
我想知道是否可以更改默认包ID com.example
在新的Android应用程序向导中显示,您键入应用程序名称?
我希望它默认为我自己的包ID我不需要每次更正包名称字段。
这可能吗?请解释一下。
不,您不能更改默认值它是在插件源中的硬编码。
(对于好奇,它在com.android.ide.eclipse.adt.internal.wizards.templates.NewProjectPage#SAMPLE_PACKAGE_PREFIX在ADT代码库)。我们应该考虑坚持最近设置的包前缀并在下一次插入父包。随时在 http://b.android.com 类别组件工具上提出问题。
- Tor
I am using Eclipse 4.2 with Android SDK.
I am wondering if it is possible to change the default package ID com.example
that shows in the "New Android Application" wizard as you type the application name?
I would like it to default to my own package ID so that I don't need to correct the Package Name field each time.
Is this possible to do? Please explain how.
No, you cannot change the default; it's hardcoded in the plugin sources.
(For the curious, it's in com.android.ide.eclipse.adt.internal.wizards.templates.NewProjectPage#SAMPLE_PACKAGE_PREFIX in the ADT code base). We should consider persisting the most recently set package prefix and inserting the parent package next time. Feel free to file an issue for that at http://b.android.com category Component-Tools.
-- Tor
这篇关于从Eclipse的Android项目的com.example更改默认包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!