从com.example Eclipse的Andr​​oid的项目更改默认包 [英] Change default package from com.example for Eclipse Android projects

查看:140
本文介绍了从com.example Eclipse的Andr​​oid的项目更改默认包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的Eclipse 4.2与Android SDK。

I am using Eclipse 4.2 with Android SDK.

我想知道是否可以更改默认包ID com.example ,显示在新的Andr​​oid应用程序向导为您键入应用程序的名称?

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?

我想它默认为我自己包的ID,这样我不需要每次都纠正包名称字段。

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.

推荐答案

没有,你不能改变默认的;很难codeD在插件的来源。

No, you cannot change the default; it's hardcoded in the plugin sources.

(对于好奇,它在com.android.ide.eclipse.adt.internal.wizards.templates.NewProjectPage#SAMPLE_PACKAGE_ preFIX在ADT code碱基)。我们应该考虑坚持最近设置的包preFIX并在下一次插入父包。随意在 http://b.android.com 类组件的工具,以文件的问题对于这一点。

(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.

- 托尔

这篇关于从com.example Eclipse的Andr​​oid的项目更改默认包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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