Phonegap does not change package name

Asked

Viewed 565 times

5

I’m using the Phonegap build to generate the APK.

When uploading to the Play Store, however, he says that the name of the app is "com.phonegap.ww".

I opened the APK with the APK Editor and it actually appears this name, but I already changed the config.xml, the androidmanifest.xml, and there is no way APK can be generated with the new name.

Can someone help me?

print do apk editor

1 answer

1

When you created the project you could have passed the complete package name as parameter.

Here is a list of the files that possibly changing the package name may solve the problem. Especially those in the Ant-Build folder.

  • \config.xml
  • \platforms\android\AndroidManifest.xml
  • \platforms\android\ant-build\AndroidManifest.cordova.xml
  • \platforms\android\ant-build\proguard.txt
  • \platforms\android\res\xml\config.xml
  • \platforms\firefoxos\config.xml

Another option can be to create a new project with the same name and the path of the package you want.

Ex.: cordova create Projeto1 br.com.exemplo.projeto1 Projeto1

Then copy the files from the folder www from your current project to the new folder www of the new project.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.