PhoneGap的3.4无法设置比其他的HelloWorld应用程序的名称 [英] phonegap 3.4 unable to set an application name other than HelloWorld

查看:170
本文介绍了PhoneGap的3.4无法设置比其他的HelloWorld应用程序的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跟着文档,并试图用这个命令创建一个新的项目

I followed the docs and trying to create a new project with this command

phonegap create project --name "MyProject" --id "com.app.MyProject"

不管我多少次尝试,应用程序是越来越安装了地狱世界的名字。
我不得不明确地改变RES /价值/ strings.xml中以<字符串名称=APP_NAME> MyProject的< /串> 来改变设备上的应用程序名称。

No matter how many times i try, the app is getting installed with "HellWorld" name. I had to explicitly change res/values/strings.xml to <string name="app_name">MyProject</string> to alter the app name on the device.

在此先感谢

推荐答案

我解决的方法;我创建的项目与3.4,然后在ADT我右键点击该文件夹的HelloWorld重构和 - >更改名称。我输入新的应用程序名称。即使ADT有一些空异常错误,我打F5几次刷新新建项目的文件夹。然后关闭并重新启动ADT瞧!它开始工作。然后我更改应用程序命名空间从com.phonegap.helloworld - > com.mydomain.myappname。我知道这是不符合逻辑的,但它是我做的方式。希望这有助于。

The way I solve; I create project with 3.4 and then in adt I right clicked on the HelloWorld folder and refactor -> change name. I typed new application name. Even if adt have some null exception errors, I hit f5 a couple of times to refresh folders of newly created project. Then close and restarted the adt and voila! it started to work. And then I change application namespace from com.phonegap.helloworld -> com.mydomain.myappname. I know it is not logical but it is the way how I did. Hope this helps.

这篇关于PhoneGap的3.4无法设置比其他的HelloWorld应用程序的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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